*Create on/off event handler aliases
This commit is contained in:
parent
8bae1c11dd
commit
39471ad9c2
|
@ -98,7 +98,9 @@ export default class Socket extends Duplex {
|
||||||
}
|
}
|
||||||
|
|
||||||
addEventListener = this.addListener;
|
addEventListener = this.addListener;
|
||||||
|
on = this.addListener;
|
||||||
removeEventListener = this.removeListener;
|
removeEventListener = this.removeListener;
|
||||||
|
off = this.removeListener;
|
||||||
|
|
||||||
static isIP(input: string): number {
|
static isIP(input: string): number {
|
||||||
if (Socket.isIPv4(input)) {
|
if (Socket.isIPv4(input)) {
|
||||||
|
|
Loading…
Reference in New Issue