mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-18 15:22:16 +00:00
Add error handler to ws connection
This commit is contained in:
@@ -30,6 +30,7 @@ class SnapdropServer {
|
||||
_onConnection(peer) {
|
||||
this._joinRoom(peer);
|
||||
peer.socket.on('message', message => this._onMessage(peer, message));
|
||||
peer.socket.on('error', console.error);
|
||||
this._keepAlive(peer);
|
||||
|
||||
// send displayName
|
||||
|
||||
Reference in New Issue
Block a user