sping websoket请求方法调用链

EntryPoint

1
2
3
4
5
6
7
8
9
10
11
12
               HttpRequestHandler
|
/----------\
/ \
/ \
WebSocketHttpRequestHandler SockJsHttpRequestHandler(So,text message need json format,strictly is json array)
| |
SubProtocolWebSocketHandler SockJsWebSocketHandler
| |
| WebSocketServerSockJsSession -> handleMessage -> Jackson2SockJsMessageCodec -> decode
| |
StompSubProtocolHandler StompSubProtocolHandler