Goeasy,It is a third-party push service platform that uses itsApireal-time push can be easily done! Personal feelingGoeasyPush more stable, push to sendFast , easy to understand code and quick to get started
Browser compatibility:GoeasyPushSupportWebSocketand thePollingtwo ways to connect to supportIE6And above, while also supporting other browsers such asFirefox, Chrome, Safariand so on.
Support different development languages are held:GoeasyPushprovides aRestful APIinterface, regardless of which language your background program is usingRestfulapito enable real-time push in the background. such as:Java, PHP, C #, Ruby, Python, C, C + +,ASP, node. js ...
support background and front-end push:Backstage UseRestful API,Front desk withGoeasy.js;The use is very simple!
the principle of push:Goeasythe implementation of the principle is simple, is to push the message at one end is responsible for the push, and the need to receive the page requires pre-subscription. Subscribe to what? SubscribeChannel. TowardsaChannelon the push message, the client subscribes to the sameChannelThis ensures that you receive it accurately. ThroughChannelwe can specify which pages or which users canreceived from thisChannelthe message that was pushed out.
PHP Webreal-time messaging backend server Push technology solution
Let me show you how to useGoeasythe steps:
1.you need toGoeasyOfficial online registration of an account,and create an app, the system will default to generate two for it after the app is created.Key:publish Keyand theSubscribe key
2.Front Desk real-time subscription and reception
only need to introduceGoeasy.js,and then callGoeasyof theSubscribemethod to subscribe to aChannelwhen you subscribe, either withPublish keyor isSubscribe keyall can. ThroughSubscribeThe ParametersOnMessagethe callback function can receive the message in real time.
3.real-time push in front desk
still need to introduceGoeasy.js(if the page has been introduced and is not being introduced),and then callGoeasyof thePublishmethod to a subscribedChannelPush -to-send messages can only be pushed withPublish key.
4.real-time push in the background
calledGoeasyrestful API,withPostWay AccessHttp://goeasy.io/goeasy/publish, along with the three required parameters:
Appkey:publish Key
Channelthe one you subscribed to.Channel
ContentPush Content
PHP Web Real-time messaging server background push technology solution---goeasy