Push notifications from server to user with PHP/JavaScript

前端 未结 3 1978
一生所求
一生所求 2020-11-30 23:04

Short: Is there a way to push data from the server to a logged in user session without that user needing to make an HTTP request?

Long(er):<

3条回答
  •  情深已故
    2020-11-30 23:44

    I recommend Socket.io

    It leverages

    WebSocket, FlashSocket, HTML file(for IE), XHR long-polling, JSONP-polling

    It is with Node.js which means it is on non-blocking nature.

    In realtime feature, concurrency is a big issue

    so the non-blocking nature of Node.js and Socket.io would help you

提交回复
热议问题