#websocket
Posts
-
Digging into Tomcat's Source 15: HTTP/2 and WebSocket — Protocols Reached by Upgrading
We follow, through Tomcat's source, how a connection that started as HTTP/1.1 turns into HTTP/2 or WebSocket. UpgradeProtocol and UpgradeToken, the upgrade handling in Http11Processor, Http2UpgradeHandler carrying many streams on one connection, and WebSocket's WsFilter and WsHttpUpgradeHandler, which come in through a single filter — all checked by hand with h2c requests and the JDK WebSocket client.
-
Digging into Spring's Source 25: WebSocket and Messaging — How a STOMP Message Flows
Follows one STOMP message from the browser through an @MessageMapping method and out to every subscriber, in the source. The Message, channel and handler abstractions of spring-messaging, the handshake in spring-websocket, and the three channels and simple broker that connect them — explained for someone who has never seen WebSocket before.