diff --git a/src/connection/tcp_connection.js b/src/connection/tcp_connection.js index eab0e16..6747846 100644 --- a/src/connection/tcp_connection.js +++ b/src/connection/tcp_connection.js @@ -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