Bug fix for sendLoginReq

This commit is contained in:
Adhiraj Singh
2020-12-02 14:21:06 +05:30
parent 84edfe1ca0
commit d4b453f0e5
2 changed files with 6 additions and 1 deletions

View File

@@ -86,7 +86,8 @@ export class WAConnection extends Base {
'Sec-WebSocket-Extensions': 'permessage-deflate; client_max_window_bits',
}
})
this.conn.addEventListener('message', ({data}) => this.onMessageRecieved(data as any))
this.conn.on('message', data => this.onMessageRecieved(data as any))
this.conn.on ('open', async () => {
this.startKeepAliveRequest()