mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
emit error on socket error
This commit is contained in:
parent
f0342def33
commit
82703bc9f3
1 changed files with 1 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ class TCPConnection extends Connection {
|
|||
// handle errors
|
||||
this.socket.on('error', (error) => {
|
||||
console.error('Connection Error', error);
|
||||
this.emit("error", error);
|
||||
});
|
||||
|
||||
// handle socket close
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue