PHP Web Real-time messaging server background push technology solution---goeasy

Source: Internet
Author: User

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 Web Real-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
Channel:the one you subscribed to.Channel
Content:Push Content


PHP Web Real-time messaging server background push technology solution---goeasy

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.