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

Why there is no returning info onConnected -- OnDisconnected etc

Open furkannkilicc opened this issue 1 year ago • 3 comments

ı can connect with price_changed but there is no connected - OnDisconnected onError etc

socket.On("price_changed", response => { Console.WriteLine("price_changed VERİSİ " + response);

 this.Invoke((MethodInvoker)delegate
 {
     textBox1.Text = "price_changed VERİSİ " + response;
 });

});

socket.OnError += (s, e) => { Console.WriteLine(e); };

socket.OnConnected += (s, e) => { Console.Write("Connected " + socket.Namespace); };

socket.OnDisconnected += (s, e) => { Console.WriteLine("Socket disconnected"); };

furkannkilicc avatar Apr 10 '24 12:04 furkannkilicc

And also disconnectAsync is not working properly

furkannkilicc avatar Apr 11 '24 12:04 furkannkilicc

Sorry I don't understand. the first comment, you mean only the price_changed event can be triggered, other events never been triggered?

doghappy avatar Apr 12 '24 15:04 doghappy

Hi, what I mean is, even though I subscribed to the event, I can't see the other event for example "socket.OnConnected" not printing console .
And my other problem is disconnectAsync triggered on button but not closing connection data is still streaming

Thanks for returning

furkannkilicc avatar Apr 12 '24 23:04 furkannkilicc