*Create on/off event handler aliases

This commit is contained in:
Derrick Hammer 2023-02-25 12:06:51 -05:00
parent 8bae1c11dd
commit 39471ad9c2
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -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)) {