moscajs / mosca

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

I need to use Mosca in another Express application and need to deploy on Heroku #561

Closed usmantahirr closed 7 years ago

usmantahirr commented 7 years ago

I am using Mosca in a node express app and I want to assign it to a route, lets say its urk/mqtt and deploy it on heroku. Lets say our URL is https://url.herokuapp.com/mqtt and I must be able to utilize all its features on this endpoint.

mcollina commented 7 years ago

You will need to use websocket and http. Standard MQTT will not work, as Heroku does not offer TCP load balancing.

See examples.