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