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.
When you have this setting, all ws clients cannot connect and throwing "Error: reserved fields must be empty". I guess the mosca mqtt server is interfering with the vanilla ws connection.
Indeed, when I change the following line to add a path to the mqtt over ws, it works like a charm:
I'd like to, but there is a design decision, either we hard coded the path there or we have to change the attachHttpServer API to include the path configuration.
Hi there,
It seems that currently you cannot serve one http server with 2 websocket connections, one for vanilla ws and one for mqtt over ws.
What I mean by this:
When you have this setting, all ws clients cannot connect and throwing "Error: reserved fields must be empty". I guess the mosca mqtt server is interfering with the vanilla ws connection.
Indeed, when I change the following line to add a path to the mqtt over ws, it works like a charm:
https://github.com/mcollina/mosca/blob/ab4b35dc3bf27f224af4db244c1db02bd1620d4b/lib/server.js#L615
The client would connect seemlessly using:
The text was updated successfully, but these errors were encountered: