1
votes

I need to connect my Flutter app with a socket.io server.

I try to use IOWebSocketChannel but it does not work.

var channel = await IOWebSocketChannel.connect("ws://localhost:80/news");

Error returned:

WebSocketChannelException: WebSocketChannelException: HttpException: Connection closed before full header was received, uri = http://localhost/news

1

1 Answers

0
votes

Socket.io is not an implementation of Web sockets. To interact with socket.io server you need some implementation of socket.io client for flutter.

Here's some of the choices available now: