修复问题
This commit is contained in:
parent
70890cce84
commit
1441c09f48
|
@ -49,9 +49,8 @@ const WebSocketComponent = ({ getData, authInfo }) => {
|
|||
const account = get("account");
|
||||
if (socketRef.current?.readyState === 1) return;
|
||||
// 创建WebSocket连接
|
||||
console.log("desdas--------.", account);
|
||||
socketRef.current = new WebSocket(
|
||||
`${process.env.NEXT_PUBLIC_WEBSOCKET_URL}/ws?b_mid=${base.b_mid}&b_dt=1&b_token=${base.b_token}&b-ch=h5`
|
||||
`${process.env.NEXT_PUBLIC_WEBSOCKET_URL}/ws?b_mid=${base.b_mid}&b_dt=1&b_token=${base.b_token}&b_ch=h5`
|
||||
);
|
||||
|
||||
// 注意使用wss协议(如果服务器支持)
|
||||
|
|
Loading…
Reference in New Issue