We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello all,
I am trying to connect socket.io of nodejs, with flutter.
I have tried with emulator, and real device. Finally, I was able to connect to the socket, but there is an error in the call back.
Below is the code:
import 'package:flutter_socket_io/flutter_socket_io.dart'; import 'package:flutter_socket_io/socket_io_manager.dart';
initSocket() async { SocketIO socket = SocketIOManager().createSocketIO("http://127.0.0.1:3000/", "/", socketStatusCallback: _socketStatus); socket.subscribe("news", _onSocketInfo); socket.init(); socket.connect(); }
Pubsec.yaml:
socket_io_client: ^0.9.7+1
flutter_socket_io: ^0.6.0
socket_io: ^0.9.0+2
Below is the code error:
Socket status: connect_error
Any advice about this issue?
Thanks,
The text was updated successfully, but these errors were encountered:
@abdelrahman84 i have same problem too.
Sorry, something went wrong.
Did you find a solution?
No branches or pull requests
Hello all,
I am trying to connect socket.io of nodejs, with flutter.
I have tried with emulator, and real device. Finally, I was able to connect to the socket, but there is an error in the call back.
Below is the code:
import 'package:flutter_socket_io/flutter_socket_io.dart';
import 'package:flutter_socket_io/socket_io_manager.dart';
initSocket() async {
SocketIO socket =
SocketIOManager().createSocketIO("http://127.0.0.1:3000/", "/", socketStatusCallback: _socketStatus);
socket.subscribe("news", _onSocketInfo);
socket.init();
socket.connect();
}
Pubsec.yaml:
socket_io_client: ^0.9.7+1
flutter_socket_io: ^0.6.0
socket_io: ^0.9.0+2
Below is the code error:
Socket status: connect_error
Any advice about this issue?
Thanks,
The text was updated successfully, but these errors were encountered: