diff --git a/src/socket.ts b/src/socket.ts index 1ed90f8..589f30a 100644 --- a/src/socket.ts +++ b/src/socket.ts @@ -96,6 +96,10 @@ export default class Socket extends Duplex { family: this.remoteFamily, }; } + + addEventListener = this.addListener; + removeEventListener = this.removeListener; + static isIP(input: string): number { if (Socket.isIPv4(input)) { return 4;