fix(server): fix bind of method

Fix #9006
This commit is contained in:
syuilo 2022-07-16 19:03:41 +09:00 committed by GitHub
parent ab3bc4a982
commit c1c8c9c37c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,7 @@ export default class extends Channel {
constructor(id: string, connection: Channel['connection']) { constructor(id: string, connection: Channel['connection']) {
super(id, connection); super(id, connection);
this.onNote = this.onNote.bind(this); this.onNote = this.onNote.bind(this);
this.emitTypers = this.emitTypers.bind(this);
} }
public async init(params: any) { public async init(params: any) {