mirror of
https://github.com/Cameri/nostream.git
synced 2025-08-03 11:12:12 +02:00
fix: worker crash on large payloads
This commit is contained in:
@@ -48,6 +48,9 @@ export class WebSocketAdapter extends EventEmitter implements IWebSocketAdapter
|
|||||||
.on('message', this.onClientMessage.bind(this))
|
.on('message', this.onClientMessage.bind(this))
|
||||||
.on('close', this.onClientClose.bind(this))
|
.on('close', this.onClientClose.bind(this))
|
||||||
.on('pong', this.onClientPong.bind(this))
|
.on('pong', this.onClientPong.bind(this))
|
||||||
|
.on('error', (error) => {
|
||||||
|
debug('error', error)
|
||||||
|
})
|
||||||
|
|
||||||
this
|
this
|
||||||
.on(WebSocketAdapterEvent.Heartbeat, this.onHeartbeat.bind(this))
|
.on(WebSocketAdapterEvent.Heartbeat, this.onHeartbeat.bind(this))
|
||||||
|
Reference in New Issue
Block a user