Pusheo Documentation

Step by step instructions for easy installation and configuration of Pusheo.

Initialize

a. Normal Mode : ‘subscribe’ key and ‘publish’ key both are required . In this mode, you can PUBLISH as well as RECEIVE messages.

var pusheo = new Pusheo({
    publish_key: "123",
    subscribe_key: "123",
    url: "http://SERVER_IP:8080/pusheo/"
});

b. Subscribe-only Mode : ‘publish’ key not required. In this mode, you can ONLY RECEIVE messages but you CANNOT PUBLISH messages to any channel. History will be available.

var pusheo = new Pusheo({
    subscribe_key: "123",
    url: "http://SERVER_IP:8080/pusheo/"
});

c. Publish-only Mode : ‘subscribe’ key not required. In this mode, you can PUBLISH messages but you CANNOT RECEIVE messages. History will NOT be available.

var pusheo = new Pusheo({
    publish_key: "123",
    url: "http://SERVER_IP:8080/pusheo/"
});