- 使用演示
public static void main(String[] args) throws Exception{
//初始化socket客户端
BaseWebSocketClient socketClient = BaseWebSocketClient.init("传入链接");
//发送消息
socketClient.sendMessage("填写需要发送的消息", (receive) -> {
//这里编写接收消息的代码
});
}
2025/11/17大约 3 分钟



