遇到了什么问题?
在taro框架中无法发起连接,也不报错
代码为:
import io from 'weapp.socket.io';
const _socket = io(HxSocketWss, {
auth: {
userId: customerId,
tenantId: lesseeId,
role: 'user',
clientId: ${Math.random()}_${Date.now()}_mini, // 识别是哪个 client 连的
platform: 'Web',
},
transports: ['websocket'],
});
taro版本号:3.6.8
遇到了什么问题?
在taro框架中无法发起连接,也不报错
代码为:
import io from 'weapp.socket.io';
const _socket = io(HxSocketWss, {
auth: {
userId: customerId,
tenantId: lesseeId,
role: 'user',
clientId:
${Math.random()}_${Date.now()}_mini, // 识别是哪个 client 连的platform: 'Web',
},
transports: ['websocket'],
});
taro版本号:3.6.8