Skip to content

在taro框架中无法发起ws连接,也不报错 #113

@tiantianzz

Description

@tiantianzz

遇到了什么问题?
在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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions