开发指南147-WebSocket-前后关联关系 2026/10/4 6:28:01 拓冰建站 浏览量 前端动作后端触发/返回new SockJS(url)HandshakeInterceptor.beforeHandshake()client.activate()ChannelInterceptor.preSend(CONNECT)client.subscribe(...)preSend(SUBSCRIBE)触发客户端onConnect服务端回 CONNECTED客户端触发 onStompError服务端拒绝返回ERROR