You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried running the CLI but it is not working. The messages are braodcasted but is not received by the subscriber. I am running both of them in localhost.
Also the sample code below is also not producing any results
Server
varSignalServer=require('signalhub/server');varhub=require('signalhub');SignalServer().listen(5000,function(){console.log("SignalServer listening on 5000");varc=hub('peerchat',['http://localhost:5000']);setInterval(function(){c.broadcast('new_message',"hey i am here");},1000);c.subscribe('new_client').on('data',function(data){console.log("new client!",data.id);});});
I tried running the CLI but it is not working. The messages are braodcasted but is not received by the subscriber. I am running both of them in localhost.
Also the sample code below is also not producing any results
Server
Client
The text was updated successfully, but these errors were encountered: