websocket代码提交

This commit is contained in:
2025-01-17 09:14:19 +08:00
parent 07a5e32579
commit 9e8ed310fc
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; }) => {
// 处理来自服务器的消息