*Alias addListener and removeListener to have WS compatible API methods
This commit is contained in:
parent
8734d8180c
commit
ab98103503
|
@ -96,6 +96,10 @@ export default class Socket extends Duplex {
|
||||||
family: this.remoteFamily,
|
family: this.remoteFamily,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
addEventListener = this.addListener;
|
||||||
|
removeEventListener = this.removeListener;
|
||||||
|
|
||||||
static isIP(input: string): number {
|
static isIP(input: string): number {
|
||||||
if (Socket.isIPv4(input)) {
|
if (Socket.isIPv4(input)) {
|
||||||
return 4;
|
return 4;
|
||||||
|
|
Loading…
Reference in New Issue