/socket.io-cloud

hosted socket.io (work in progress)

Primary LanguageCSSMIT LicenseMIT

Socket.IO Cloud

A cloud server for socket.io

How to use

$ cd socket.io-cloud
$ npm install
$ node bin/cloud

After the socket.io cloud server is running, set up your application to connect to it on http://localhost:3000. You can change the port from 3000 for the cloud server by supplying the PORT env variable.

Afterwards, provide the socket.io resources to your application.

<script src="http://localhost:3000/socket.io/socket.io.js"></script>

Then, create the socket connection by placing the following into the client-side javascript.

var socket = io("http://localhost:3000/namespace.id");

Communications are done via POST requests to the socket.io cloud server. See socket.io-cloud-examples for a simple app example that uses the socket.io cloud.

Note: Cloud Server is running on port 3000 and the Client Server is running on 3001 in the examples

Features

  • Enables developers to create dynamic content without loading the resources for socket.io on their own servers