Closed chohoo89 closed 2 years ago
Can you try this?
socket.OnError += Socket_OnError;
...
private void Socket_OnError(object sender, string e)
{
Console.WriteLine(e);
}
outpu:
Auth Error
The output is from: next(new Error('Auth Error'));
Can you try this?
socket.OnError += Socket_OnError; ... private void Socket_OnError(object sender, string e) { Console.WriteLine(e); }
outpu:
Auth Error
The output is from:
next(new Error('Auth Error'));
Thanks for replying. 😊 Is the socket.OnError function an event that only reacts to the server's new Error() function?
Hi.
Authorization is verified with middleware in My socketio server. If the client does not give me a proper token, the middleware calls the connection close.
However, the ondisconnected event cannot be called in the C# client.
Middleware disconnect event from server doesn't support calling from C# client? thank you. 😅