What push server technology can I use in my HTML web application?

I am looking for push server technology for my web application.
I would like to use a similar StackOverflow technology, as it works very well. So are there any suggestions?

+4
source share
2 answers

For a push server, Server-Sent Events is a better choice than WebSockets. GitHub uses SSE to automatically display new comments, download requests, etc.

  • SSE is HTTP compatible, so it will work with proxies, and you wonโ€™t need HTTPS to work in practice (for example, a large number of mobile operators have an HTTP proxy that breaks unencrypted WebSockets, but SSE works fine) .

  • SSE connection is easy and fast. There is no additional procedure for establishing a connection and connection. If you have SSE on every page, your server will work less.

  • The SSE protocol is very simple. You do not need a dedicated web server or library, and it can be polyfilled for older browsers.

+1
source

I suggest you take a look at QWebSockets if you are managing the server side.
Otherwise, socket.io is a good candidate.
There are also ghostly services like Pusher and PubNub that are free for a moderate amount of push messages.

0
source

Source: https://habr.com/ru/post/1496922/


All Articles