diff --git a/src/socket.ts b/src/socket.ts index 589f30a..99cbe89 100644 --- a/src/socket.ts +++ b/src/socket.ts @@ -98,7 +98,9 @@ export default class Socket extends Duplex { } addEventListener = this.addListener; + on = this.addListener; removeEventListener = this.removeListener; + off = this.removeListener; static isIP(input: string): number { if (Socket.isIPv4(input)) {