Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 583 Bytes

socketio.md

File metadata and controls

21 lines (16 loc) · 583 Bytes

Setting up Rltm.js with Socket.io

You must run a Socket.io server yourself for this to work. You can find a fully featured example in the root of this repository called socket.io-server.js.

node ./socket.io-server.js

Once the server is running, configure rltm to look for the server at that endpoint.

let user = rltm({
    service: 'socketio', 
    config: {
        endpoint: 'http://localhost:8000'
    }
});

You can read more about config options on the Socket.io Documentation