Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RocketChat
Rocket.Chat.js.SDK
Commits
454b4ba7
Unverified
Commit
454b4ba7
authored
Mar 11, 2022
by
Diego Mello
Committed by
GitHub
Mar 11, 2022
Browse files
[FIX] subscribeAll hangs on reconnection
parents
9d18d628
1471ae12
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/drivers/ddp.ts
View file @
454b4ba7
...
...
@@ -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
}
...
...
package.json
View file @
454b4ba7
{
"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"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment