The WebSocket session [x] has been closed and no method (apart from close())

在向客户端发送消息时,session关闭了。

不管是单客户端发送消息还是多客户端发送消息,在发送消息之前判断session 是否关闭

使用 isOpen() 方法

The WebSocket session [x] has been closed and no method (apart from close())_第1张图片

你可能感兴趣的:(笔记,websocket,网络协议,网络,java)