*Alias addListener and removeListener to have WS compatible API methods

This commit is contained in:
Derrick Hammer 2023-02-25 01:51:35 -05:00
parent 8734d8180c
commit ab98103503
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -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;