How to Implement Push Notifcation in PHP

前端 未结 1 1718
礼貌的吻别
礼貌的吻别 2021-02-06 16:27

I have been working with ajax for a while now, and I have used it to do a lot of nifty jobs.. But then my recent challenge has been on push notification.

I want to imple

相关标签:
1条回答
  • 2021-02-06 16:48

    Since WebSocket support isn't quite there yet, you would want to fall back on long polling. There already seems to be a jQuery plugin for this:

    https://code.google.com/p/jquery-graceful-websocket/

    A nice slide on this subject can be found here http://www.slideshare.net/ffdead/the-html5-websocket-api

    To implement WebSockets in PHP, have a look at https://code.google.com/p/phpwebsocket/

    0 讨论(0)
提交回复
热议问题