Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: fixed stream query broadcast method params #375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: fixed stream query broadcast method params
  • Loading branch information
raheeliftikhar5 committed Sep 17, 2023
commit 52bbfc63719950b7e20a48f1240c034c4220329c
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ StreamTmpQuery = withMethodExposing(StreamTmpQuery, [
{
method: {
name: "broadcast",
params: [{ name: "args", type: "JSON" }],
params: [{ name: "data", type: "JSON" }],
},
execute: (comp, params) => {
return new Promise((resolve, reject) => {
const tmpComp = (comp as StreamQuery);
if(!tmpComp.getSocket()) {
return reject('Socket message send failed')
}
tmpComp.broadcast(params);
tmpComp.broadcast(params[0]);
resolve({});
})
},
Expand Down