Websocket使用July 13, 2023 · 2 min readflankx作者方式1:原生注解 监听路径:@ServerEndpoint 建立连接:@OnOpen 接收消息:@OnMessage 关闭连接:@OnClose 连接错误:@OnError