rikulo / socket.io-dart

socket.io-dart: Dartlang port of socket.io https://github.com/socketio/socket.io
https://quire.io
MIT License
121 stars 45 forks source link

socket_io: ^1.0.0 Incompatible with socket_io_client: ^2.0.0-beta.2 #41

Open Rushabh1798 opened 3 years ago

Rushabh1798 commented 3 years ago

Latest versions of socket io server and client are incompatible with each other. My IO server on JS side is ^4 hence I need to use socket_io_client: ^2.0.0-beta.2 for compatibility. But I want to test my dart client by mocking the server at dart side using socket_io (dev dependency would also do). How can I achieve this.? Apart from the version issues, suggestions on good practice to test sockets locally in dart whose actual server resides on JS, would be appreciated .

Thanks. Rushabh.

nicobritos commented 3 years ago

Hi, this is mentioned in here and here, where it is mentioned that socket_io_dart v1.0.0 is based on JS server v2, and the client v2 is only compatible with the JS server v3 (and client v1 with server v2).

You cannot connect a socket io dart client v2 to a JS server v4.