Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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