Browser Operations

Publish message

Java

    GoEasy goEasy = new GoEasy( "http(s)://<REST Host>”, "my_appkey");
    goEasy.publish("my_channel","Hello, GoEasy!");

JavaScript

    var goEasy = new GoEasy({
        appkey: "my_appkey"
    });
    //GoEasy-OTP is used to secure your appkey, more details see 
    goEasy.publish({
        channel: "my_channel",
        message: "Hello, GoEasy!"
    });

GoEasy-OTP

Receive message

JavaScript

    var goEasy = new GoEasy({
        appkey: "my_appkey"
    });
    goEasy.subscribe({
        channel: "my_channel",
        onMessage: function (message) {
            alert("Channel:" + message.channel + " content:" + message.content);
        }
    });

Cancel Subscription

JavaScript

    goEasy.unsubscribe ({
        channel: "my_channel"
    });

results matching ""

    No results matching ""