Commit d6447198 authored by Wandenberg's avatar Wandenberg

publish the message to all connected channels in javascript sendMessage...

publish the message to all connected channels in javascript sendMessage function like when using websocket connection
parent 3abca999
...@@ -444,13 +444,8 @@ Authors: Wandenberg Peixoto <wandenberg@gmail.com>, Rogério Carvalho Schneider ...@@ -444,13 +444,8 @@ Authors: Wandenberg Peixoto <wandenberg@gmail.com>, Rogério Carvalho Schneider
url += pushstream.host; url += pushstream.host;
url += ((pushstream.port !== 80) && (pushstream.port !== 443)) ? (":" + pushstream.port) : ""; url += ((pushstream.port !== 80) && (pushstream.port !== 443)) ? (":" + pushstream.port) : "";
url += pushstream.urlPrefixPublisher; url += pushstream.urlPrefixPublisher;
for (var channelName in pushstream.channels) { url += "?id=" + getChannelsPath(pushstream.channels, false);
if (!pushstream.channels.hasOwnProperty || pushstream.channels.hasOwnProperty(channelName)) {
channel = channelName;
break;
}
}
url += "?id=" + channel;
return url; return url;
}; };
......
Markdown is supported
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