Unverified Commit 454b4ba7 authored by Diego Mello's avatar Diego Mello Committed by GitHub
Browse files

[FIX] subscribeAll hangs on reconnection

parents 9d18d628 1471ae12
......@@ -298,7 +298,7 @@ export class Socket extends EventEmitter {
login = async (credentials: any) => {
const params = this.loginParams(credentials)
this.resume = (await this.call('login', params) as ILoginResult)
await this.subscribeAll()
this.subscribeAll().catch(console.log)
this.emit('login', this.resume)
return this.resume
}
......
{
"name": "@rocket.chat/sdk",
"version": "1.2.0-mobile",
"version": "1.3.0-mobile",
"description": "Node.js SDK for Rocket.Chat. Application interface for server methods and message streams.",
"main": "index.ts",
"types": "index.d.ts",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment