Skip to content
Snippets Groups Projects
Commit 44bccdae authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Add method to list broadcast connections for debug purpose

parent 6ca529ac
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,14 @@
console.log 'broadcast to', port, streamName, eventName, args
connection.call 'stream', streamName, eventName, args
Meteor.methods
showConnections: ->
data = {}
for port, connection of connections
data[port] = connection.status()
return data
emitters = {}
for streamName, stream of streams
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment