Push message to any browsers in 3 steps

What you’ll need

  • Sign up a free GoEasy account.
  • Add an application free to obtain app key.
  • About 9 minutes.

Step 1: Import GoEasy

1. Please don't download goeasy.js as your local js, GoEasy provides dynamic goeasy.js according to different browsers.Directly use local goeasy.js may get browser compatibility issues.
2. If your application needs to support Windows XP users, please use HTTP to load goeasy.js. GoEasy will upgrade all SSL certificates to SHA-2 from Sep 22th 2016,then all Windows XP users will not be able to connect GoEasy with HTTPS.
                      <script type="text/javascript" src="http(s)://cdn.goeasy.io/goeasy.js"></script>
                      <script type="text/javascript">

                          var goEasy = new GoEasy({
                              appkey: 'Your app key here'
                          //GoEasy-OTP can protect your appkey well, more details see: GoEasy-Reference
                  Option 1. Manually download:
                        Download sdk: goeasy.jar
                        Add dependency libraries: gson.jar  slf4j-api.jar

                  Option 2. Maven:
                       Add goeasy maven repository to your pom.xml::
                       and then add dependency::

                    GoEasy goEasy = new GoEasy("appkey" );

Step 2: Push message

GoEasy supports you push a message from either server or client (javascript, android, iOS).

2.1 Push message by RESTful API

You could post a http request to call GoEasy RESTful API, and whatever language your application is created. For java, you also can choose our sdk to help you to push a message.






Name Required Description
appkey Yes Your app key
channel Yes Target channel name
content Yes The message you want to publish

    goEasy.publish('demo_channel', 'Hello world!');
RESTful API (Php, iOS, .Net, Ruby ...)

2.2 Push message from browser

                        channel: 'demo_channel',
                        message: 'Hello world!'

Step 3: Receive message on browser


                        channel: 'demo_channel',
                        onMessage: function(message){
                            alert('Meessage received:'+message.content);