*Methods not needed
This commit is contained in:
parent
ee3e71351c
commit
36dd596aab
17
src/index.ts
17
src/index.ts
|
@ -169,14 +169,6 @@ export class Socket extends Client {
|
|||
return super.on(event, fn, context) as this;
|
||||
}
|
||||
|
||||
onSelf<T extends EventEmitter.EventNames<string | symbol>>(
|
||||
event: T,
|
||||
fn: EventEmitter.EventListener<string | symbol, T>,
|
||||
context?: any
|
||||
): this {
|
||||
return super.on(event, fn, context) as this;
|
||||
}
|
||||
|
||||
off<T extends EventEmitter.EventNames<string | symbol>>(
|
||||
event: T,
|
||||
fn?: EventEmitter.EventListener<string | symbol, T>,
|
||||
|
@ -191,15 +183,6 @@ export class Socket extends Client {
|
|||
return super.off(event, fn, context, once);
|
||||
}
|
||||
|
||||
offSelf<T extends EventEmitter.EventNames<string | symbol>>(
|
||||
event: T,
|
||||
fn?: EventEmitter.EventListener<string | symbol, T>,
|
||||
context?: any,
|
||||
once?: boolean
|
||||
): this {
|
||||
return super.off(event, fn, context, once);
|
||||
}
|
||||
|
||||
write(message: string | Buffer): void {
|
||||
this.callModule("socketWrite", { id: this.id, message });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue