Integrate goeasy.js

Import goeasy.js into your html.

<!--[if lte IE 8]>//if you need to support lower versions than IE8
<script  type="text/javascript" src=""></script>

<script type="text/javascript" src=""></script>

Initialize GoEasy

var goEasy = new GoEasy({
    host:'', //your application region: [ |]
    appkey: "my_appkey", //Replace it with your own appkey
//GoEasy-OTP is used to secure your appkey, more details see 
//If you need to use HTTPS/WSS, please add the option 'forceTLS' and set it to be true


Receive messages

    channel: "my_channel", //Replace it with your own channel
    onMessage: function (message) {
        console.log("Channel:" + + " content:" + message.content);

Publish messages

    channel: "my_channel", //Replace it with your own channel
    message: "Hello, GoEasy!" //Replace it with your own message

Cancel Subscription

    goEasy.unsubscribe ({
        channel: "my_channel" //Replace it with your own channel

results matching ""

    No results matching ""