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

Call from different methods using the same nsp is not available.

Open 2huiju opened this issue 2 years ago • 0 comments

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?

2huiju avatar Jan 04 '23 06:01 2huiju