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
ddc7c9cb
Commit
ddc7c9cb
authored
Feb 01, 2019
by
diegolmello
Browse files
[FIX] onStreamData args
parent
6698f2a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/drivers/ddp.ts
View file @
ddc7c9cb
...
...
@@ -557,7 +557,7 @@ export class DDPDriver extends EventEmitter implements ISocket, IDriver {
}
onStreamData
=
(
name
:
string
,
cb
:
ICallback
):
Promise
<
any
>
=>
{
return
Promise
.
resolve
(
this
.
ddp
.
on
(
name
,
(
{
fields
:
{
args
:
[
message
]
}
}
:
any
)
=>
cb
((
message
))))
as
any
return
Promise
.
resolve
(
this
.
ddp
.
on
(
name
,
(
message
:
any
)
=>
cb
((
message
))))
as
any
}
onMessage
=
(
cb
:
ICallback
):
void
=>
{
...
...
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