We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
like emqx,i neet to listen 4 ports use one server(tcp :1883,tls:8883,ws:8083,wss:8084)
I have checked the README but all examples are use one port how can i do? thanks
The text was updated successfully, but these errors were encountered:
You can do something like this
const broker = aedes(); const mqtt = aedesFactory.createServer(broker); const mqttWs = aedesFactory.createServer(broker, { ws: true }); mqtt.listen(MQTT_BROKER.PORT, MQTT_BROKER.HOST, () => { console.log(`MQTT broker over tcp listening on port ${MQTT_BROKER.PORT}`); }) mqttWs.listen(MQTT_BROKER.WS_PORT, MQTT_BROKER.HOST, () => { console.log(`MQTT broker over ws listening on port ${MQTT_BROKER.WS_PORT}`); })
Sorry, something went wrong.
No branches or pull requests
like emqx,i neet to listen 4 ports use one server(tcp :1883,tls:8883,ws:8083,wss:8084)
I have checked the README but all examples are use one port
how can i do?
thanks
The text was updated successfully, but these errors were encountered: