Flutter implementing socket.io with dart

Viewed 8758

i am trying to implement socket.io with my flutter app, currently flutter is supporting WebSocket but i have found a way for socket.io in package "dart.io" but i am unable to understand how to emit a message on a specific event. Any suggestions would be helpful :)

3 Answers

Using this flutter_socket_io package, I managed to connect to my local Socket IO server.

SocketIO socket = SocketIOManager().createSocketIO("http://localhost:3000", "/");
socket.init();
socket.connect();

Maybe you could share your implementation on both client and server side to debug further.

Related