moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 513 forks source link

Prevent Running Port 1883 #771

Open ccravens opened 5 years ago

ccravens commented 5 years ago

Hello:

I'm using Mosca on a NodeJS server, and I'm successfully attaching the mqtt server to my express http server, so that I can connect mqtt over websockets over the same port as my express app (3000). Hooray!

However it still seems to open a raw tcp on port 1883 as well. This is a problem because I need to run RabbitMQ on the same server, which also runs an MQTT server and there is a port conflict.

Is it possible to have mosca ONLY run via through the Express HTTP server and not open a raw TCP 1883 port?

thanks!