Is there a real server push over http?

前端 未结 7 893
走了就别回头了
走了就别回头了 2020-12-05 08:06

I know there are ways to fake it, polling (or long polling) but is there any way to have the server contact the browser to push out information?

Either polling optio

7条回答
  •  一个人的身影
    2020-12-05 08:30

    May be technology has advanced from the time the question was asked ... I came across this one searching for something else.

    WebPush is available in most of the browsers and there are several Push Notification providers that send information from the server to the browser. Other than few browsers like Safari, one can develop handlers which can be invoked when the notification arrives and perform some action on the client side browser.

提交回复
热议问题