Question

Are there any cloud/hosted push systems which use socket.io on the client side? Systems I know of, none of which use socket.io AFAIK:

Are there any services I'm missing? Could any of them be used with socket.io?

Was it helpful?

Solution

Use Socket.IO client API on PubNub.
Early Access: https://github.com/pubnub/pubnub-api/tree/master/socket.io

<!-- SIMPLE USAGE -->
<script src=http://cdn.pubnub.com/pubnub-3.1.min.js></script>
<script src="socket.io.js"></script>
<script>
  var socket = io.connect('http://pubsub.pubnub.com');
  socket.on( 'news', function (data) {
    console.log(data);
  } );
</script>

Socket.IO Terminal Example

This simplified usage of Socket.IO will create a connection, listen for a news event and log the data to the console.

More Info: PubNub Website Play Video: Bidirectional JSON Video

Early Access: https://github.com/pubnub/pubnub-api/tree/master/socket.io

Socket.IO is Better on PubNub

OTHER TIPS

You cannot use the socket.io client with our service (Pusher.com), and I don't imagine you can use it with the others either.

IIRC Socket.io is a fairly tightly coupled combo of client and server, and it doesn't necessarily make sense to only use the client part.

I'm not quite sure why you'd want to do this, but I'm happy to pick it up through our support system, if you think we are lacking functionality.

Max

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top