moscajs / mosca

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

Mosca over Primus #705

Closed matijagaspar closed 6 years ago

matijagaspar commented 6 years ago

So I stumbled upon this https://github.com/primus/primus/issues/48 and I was wondering if you managed to make it work @mcollina?

Reason I am asking is that I wanted to use uws as my web-socket implementation. And since the the current mqtt-connection requires a stream I can not make it work directly and Primus seemed like a good way around it.

Another way I guess would be to create ws=>mqtt the wrapper myself?

mcollina commented 6 years ago

You should be able to do something with http://npm.im/aedes. It works on top of any Node stream.