You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.
function onAuthorizeFail(data, message, error, accept){
console.log('failed connection to socket.io:', message);
if(error)
accept(new Error(message));
}
How to handle this on the client side?
The documentation mentions:
// If you use [email protected] the callback looks different
// If you don't want to accept the connection
if(error)
accept(new Error(message));
**// this error will be sent to the user as a special error-package
// see: http://socket.io/docs/client-api/#socket > error-object**
But its not clear what to do on the client side. For example none of the following are triggered:
Given this:
How to handle this on the client side?
The documentation mentions:
But its not clear what to do on the client side. For example none of the following are triggered:
The text was updated successfully, but these errors were encountered: