2023-07-13阅读需 2 分钟Websocket使用Websocket使用:监听路径:@ServerEndpoint 建立连接:@OnOpen 接收消息:@OnMessage 关闭连接:@OnClose 连接错误:@OnError。涵盖ws等关键词。ws