Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why there is no returning info onConnected -- OnDisconnected etc #370

Open
furkannkilicc opened this issue Apr 10, 2024 · 3 comments
Open

Comments

@furkannkilicc
Copy link

furkannkilicc commented Apr 10, 2024

ı 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 furkannkilicc changed the title Why ı can not connect ws ? there is now error - info... Why there is no returning info onConnected -- OnDisconnected etc Apr 10, 2024
@furkannkilicc
Copy link
Author

And also disconnectAsync is not working properly

@doghappy
Copy link
Owner

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

@furkannkilicc
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants