xinghuode
xinghuode
this problem id done,may cache。
var client = mqtt.connect('mqtts://mydomain.com:3001/') client.on('connect', function () { client.subscribe('presence') client.publish('presence', 'Hello mqtt') }) client.on('message', function (topic, message) { // message is Buffer console.log(message.toString()) client.end() })
use var client = mqtt.connect('mqtt://mydomain.com:3000/') client.on('connect', function () { client.subscribe('presence') client.publish('presence', 'Hello mqtt') }) client.on('message', function (topic, message) { // message is Buffer console.log(message.toString()) client.end() }) is ok。 the other:...
so,my mosca server config is right? but my linux server config or mqtt client config error?
maybe my https certificate no right,txs。other,this project has slack?
os: linux node: v10+ i use : const buffer = ` ${text} `; sharp(Buffer.from(buffer)) .png() .toFile('text.png'); console.log(sharp.versions) but cant use my custom font Algerian
i solve this problem by import font to os font lib。but this method s Maintainability is so poor,i hope sharp have api to load font from project one sub directory...
my dist only one bundle,6M big,because this?