Joke Collection Website - Blessing messages - Java message push how to do websocket message push?
Java message push how to do websocket message push?
In the previous message push mechanism, Ajax polling was used, and the browser automatically issued a request at a specific time interval and actively pulled back the message from the server. This method is very resource-consuming, because it is essentially an http request, which is very clumsy. WebSocket completes the handshake between browser and server. After the connection is established, the server can actively send data to the client, and the client can also send data to the server at any time.
WebSocket protocol is a new network protocol based on TCP. The full-duplex communication between the browser and the server is realized, allowing the server to send information to the client actively. You can also choose a third-party push platform, such as Aurora Push.
- Previous article:Why did General Finance send a text message saying it was overdue?
- Next article:In 2020, seize the day and live up to your time.
- Related articles
- How to turn off the anti-fraud function when browsing the web?
- The company sent a text message saying that it accepted the training with tools through the second interview.
- Health and health blessing tips
- Daily blessing SMS plus rhetoric
- Inspirational weekend aesthetic blessing copy
- Engineering dunning letter
- How to open the yellow diamond by SMS
- China New Year greeting message sentence New Year greeting
- Greetings to teachers on New Year's Eve are brief.
- When will the admission notice be issued for Shanxi's higher vocational enrollment expansion?