Commit Graph

7 Commits

Author SHA1 Message Date
Nick O'Leary a3cbe80a36
Do not dynamically add/remove upgrade listener in ws nodes
The way we dynamically added/removed event handlers for the
upgrade event was causing problems with the way sockjs (as
used by the worldmap node) tries to intercept the event.

This fix means the ws nodes won't ever remove the upgrade
listener - it gets added once when the first ws node is
deployed and will then remain until the last ws node is
removed and the runtime restarted.
2019-03-20 14:58:26 +00:00
Nick O'Leary 19a103d3a0
Add _session and event to WS/TCP Status messages 2019-03-04 11:09:18 +00:00
Nick O'Leary ed31a0cf15
Update to WS 6.x and fix all it broke
Significant update to the ws module to get it completely up to date.

The jump from 1.x to 6.x has required a rewrite of our WS handling. Most
specifically the means by which you can have multiple ws servers on a
single http server has completely changed; we now have to handle the
'upgrade' event on the server ourselves.
2019-01-08 16:21:36 +00:00
Dave Conway-Jones c9dc9b4fe9
fix websocket feedback test - now doesn't spin 2018-09-26 16:03:22 +01:00
Dave Conway-Jones c6a1c8e8c4
Fix corruption of websocket _session 2018-09-25 08:40:29 +01:00
Dave Conway-Jones f5bebef37f
websocket - preserve _session on msg but don't send as part of wholemsg 2018-09-23 10:34:22 +01:00
Nick O'Leary ecd8f97d8b
WIP: move all the code 2018-08-04 22:23:06 +01:00