socket.io-dart icon indicating copy to clipboard operation
socket.io-dart copied to clipboard

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

Open Rushabh1798 opened this issue 4 years ago • 1 comments

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.

Rushabh1798 avatar Aug 02 '21 05:08 Rushabh1798

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.

nicobritos avatar Sep 02 '21 19:09 nicobritos