Close unconfirmed transfer paths and reject binary signalling envelopes
This commit is contained in:
@@ -170,7 +170,7 @@ export function createPartyHub({ now = () => Date.now() } = {}) {
|
||||
|
||||
return {
|
||||
upgrade,
|
||||
websocket: { maxPayloadLength: MAX_MSG, idleTimeout: 120, open, message: (ws, msg) => message(ws, typeof msg === 'string' ? msg : Buffer.from(msg).toString('utf8')), close },
|
||||
websocket: { maxPayloadLength: MAX_MSG, idleTimeout: 120, open, message: (ws, msg) => message(ws, typeof msg === 'string' ? msg : null), close },
|
||||
_parties: parties,
|
||||
stop() { clearInterval(sweeper); },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user