This commit is contained in:
sjl
2025-01-17 09:15:58 +08:00
3 changed files with 19 additions and 12 deletions

View File

@@ -989,8 +989,8 @@ const handleTest = async (val: string) => {
// }
const url = 'ws://localhost:7777/hello?name=cdf';
socketClient.Instance.connect(url);
socketClient.Instance.connect();
dataSocket.socketServe = socketClient.Instance;
dataSocket.socketServe.registerCallBack('aaa', (res: { code: number; }) => {
// 处理来自服务器的消息