**无法将 websocket 连接到 nodejs 服务器以进行 websocket 连接我正在使用 socket_io_client: ^1.0.1 库 **
无效连接(){
IO.Socket socket = IO.io('https://MY Url', <String, dynamic>{
'transports': ['websocket'],
'autoConnect': false,
});
socket.connect();
socket.on('connect', (_) => print('connect: ${socket.id}'));
socket.onConnectError((data) => print(data));
socket.emit('/test', 'test');"
print("hello");
print(socket.connected);
}