What is the relationship between WebSockets and asynchronous servlets?

From my basic understanding of both WebSockets and asynchronous servlet technologies, it seems that both technologies support push data support in browsers. I want to understand the coincidence of these two technologists? Are they complementary or are they two technologies that have a common goal?

PS: I consider the connection between these two technologies from the point of view of the client, as well as the server.

+5
source share
1 answer

From the wiki definition: โ€œWebSocket is a web technology that provides full-duplex communication channels over a single TCP connection,โ€ so this is exactly the same as the communication protocol between the client and server, for example, the HTTP protocol.

- - Java- . async ( ).

, 3, WebSockets . , , Servlet, WebSockets Servlet, Tomcat Jetty, Servlet , , .

, , .

+3

All Articles