Push message toany web client in 3 steps
Preparations
Sign up a free GoEasy account.
Add an application free to obtain app key.
About 9 minutes.
01. Initialize GoEasy
Integrate goeasy.js
<script type="text/javascript" src="https://cdn.goeasy.io/goeasy-1.0.3.js"></script>
Or 
npm install --save goeasy
import GoEasy from 'goeasy';
Or donwload:  https://cdn.goeasy.io/goeasy-1.0.3.js
import GoEasy from './goeasy-1.0.3';
GoEasy-OTP more details see: GoEasy-Reference.
02. Receive messages(Subscribe)
03. Publish messages
You could send messages on the channel and client subscribed this channel will receive these messages, GoEasy supports sending messages from server side or client side.
Method 1: Sending messages from server side
According to your Application region, replace <REST Host> with hangzhou: rest-hangzhou.goeasy.io or singapore: rest-singapore.goeasy.io.
URL:
http(s)://<REST Host>/publish
Method:
Post
Parameters
Name Required Description
appkey Yes Your appkey
channel Yes Target channel name
content Yes The message you want to publish
Method 2:Sending messages from client side
User support
15a4124ac573aw07
401a0-6a555-0a0889

© 2015-2019 GoEasy. All Rights Reserved.    Email:m contaact@igoleasy.io

Feedback
Submit