socket.io-client-dart
socket.io-client-dart copied to clipboard
Call from different methods using the same nsp is not available.
Hi.
I'm using socket io as a flutter. Inside the same class, use the same namespace. There are two methods.
After you connect the namespace, After connecting the namespace, onConnect works well and can be used in one method. After using it in one method, Even though I didn't disconnect, I can't use it because other methods don't have onConnect.
When I printed the log, I can see that the nsp is taken well in other methods, but I wonder why I can't use it.
If the method changes even in the same class, do I have to reconnect the nsp?