Calvin Montgomery
3322e5404f
Make uws listener configurable
2018-07-11 21:24:39 -07:00
Calvin Montgomery
f0ba3a998a
Handle errors in broadcast emit
2018-07-10 21:52:41 -07:00
Calvin Montgomery
85947d326e
Fix mismatch between single-emit and broadcast encoding
2018-07-10 21:52:41 -07:00
Calvin Montgomery
4cad31d82c
Add test for typecheckedOn
2018-07-10 21:52:41 -07:00
Calvin Montgomery
86e023d233
Refactor protocol and add acks
2018-07-10 21:52:41 -07:00
Calvin Montgomery
d369f1ebe4
Add uws middleware
2018-07-10 21:52:41 -07:00
Calvin Montgomery
61b856c2c9
Refactor socket.io middleware for future uws compatibility
2018-07-10 21:52:41 -07:00
Calvin Montgomery
3db751b65f
Fix socket count metric leak
2018-07-09 20:24:53 -07:00
Calvin Montgomery
95e147b5a0
Use socket.handshake instead of socket.client.request
...
Fixes a bug where sockets would be rejected if they connected directly
with the 'websocket' transport instead of doing an AJAX connection with
websocket upgrade (e.g. if `transports: ['websocket']` is passed to the
socket.io-client constructor).
See https://github.com/socketio/socket.io/blob/master/docs/API.md#sockethandshake
2017-12-27 14:24:33 -08:00
Calvin Montgomery
64350cc492
Disable test for middleware commented out due to #724
2017-12-06 22:17:37 -08:00
Calvin Montgomery
0118a6fb15
Refactor socket.io controller
2017-08-01 19:29:11 -07:00
Calvin Montgomery
b23a858a8c
Integrate socket.io ban check with GlobalBanDB
2017-06-05 23:14:45 -07:00