socket.io-client-dart
socket.io-client-dart copied to clipboard
Can't get the data passed back when events are emitted from a nodeJS server
I'm currently using the latest versions of both socket.io-client-dart and socket.io server for node JS. Connections are established successfully, however events passed from the server to the client cannot be accessed
socket?.on('event', (data) {
print(data);
//this data property cannot be accessed in the client app
});
I had the same issue and found out that it was because my Socket.io server is using version 2.*, which is not compatible with socket.io-client-dart version 2.0.1. I was able to fix the issue by downgrading to 1.0.2.
@Lewynation Which version are you using in Client and Server?