socket.io-client-dart icon indicating copy to clipboard operation
socket.io-client-dart copied to clipboard

socket.io-client-dart: Dartlang port of socket.io-client https://github.com/socketio/socket.io-client

Results 158 socket.io-client-dart issues
Sort by recently updated
recently updated
newest added

Hi, Can you guys Please help me to connect Sailsjs connect using flutter app

question

I am using this code to connect to socket io server : ``` @override void initState() { super.initState(); IO.Socket socket = IO.io('https://socket.***.**', { 'transports': ['websocket'], 'autoConnect': true, }); // socket.connect();...

flutter-related

Hello, I would enable unit test for my project which use your socket package. But the following error failed my tests : ```bash The following assertion was thrown running a...

flutter-related

I keep getting this from listener. I'm not even socket.connect() I/flutter (20179): [connect_error, SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = 192.168.43.2, port = 46770]

``` socket = IO.io( '${ServerURLs.socketURL}', IO.OptionBuilder() .setTransports(['websocket']) .disableAutoConnect() // .enableForceNewConnection() // .enableReconnection() // .setReconnectionDelay(5000) // .enableForceNew() .build(), ); ``` ``` socket.onDisconnect((data) { debugPrint('Socket ========== isSocketDisconnect: ${socket.connected}'); }); ``` Above event...

my code: ``` IO.Socket socket = IO.io('http://127.0.0.1:9996'); socket.onConnect((_) { print('connect'); }); socket.on('read', (data) => print(data)); socket.onDisconnect((_) => print('disconnect')); ``` output: ``` Error: NoSuchMethodError: 'split' Dynamic call of null. Receiver: Instance...

Hi, I faced a use case where users turn off their internet and then turn it on again. What I expect is the socket client to reconnect and reuse the...

### Steps to Reproduce: 1. Enable [connection state recovery](https://socket.io/docs/v4/connection-state-recovery) feature. 2. Emit a 'status' event with a string value from the server using `socket.emit('status', 'waiting')`. 3. Subscribe to the 'status'...

bug

This is my sever code ``` socket.on('join', (data) => { console.log('socket join') console.log('USERID to join ------>>>>>>' + data) const userId = data; // Check if the user already exists in...

import 'package:flutter/material.dart'; import 'package:socket_io_client/socket_io_client.dart' as IO; class checking extends StatefulWidget { const checking({Key? key}) : super(key: key); @override State createState() => _checkingState(); } class _checkingState extends State { late IO.Socket...

question