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
Here's an example for raw websockets (instead of sockjs). It appears that onmessage, onclose, etc, used in the sockjs examples don't apply to raw websockets.
var ws = new WebSocket('ws://' + foo);
var pubsub = new WebSocketMultiplex(ws);
var logs = pubsub.channel('/logs');
logs.addEventListener('message', function(dataObject) {
console.log('logs got data ' + dataObject.data);
});
The text was updated successfully, but these errors were encountered:
Here's an example for raw websockets (instead of sockjs). It appears that onmessage, onclose, etc, used in the sockjs examples don't apply to raw websockets.
The text was updated successfully, but these errors were encountered: