You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.
varmosca=require('mosca')varSECURE_KEY=__dirname+'/../../test/secure/tls-key.pem';varSECURE_CERT=__dirname+'/../../test/secure/tls-cert.pem';varsettings={port: 1883,logger: {name: "secureExample",level: 40,},secure : {port: 8443,keyPath: SECURE_KEY,certPath: SECURE_CERT,}};varserver=newmosca.Server(settings);server.on('ready',setup);// fired when the mqtt server is readyfunctionsetup(){console.log('Mosca server is up and running')}