I'm using the Swift client together with a Node.js socket.io server. On the server, I authenticate the user based on handshake data. When this fails, the server invokes:
In the socket.io Web client, this triggers the on("error") callback. However, in the Swift version it does not. By debugging the library, I notice that the error message is received (type 4), yet not dispatched to the on("error") callback. Maybe because "error" events are treated as internal messages?
I'm using the Swift client together with a Node.js socket.io server. On the server, I authenticate the user based on handshake data. When this fails, the server invokes:
io.use(function(socket, next) { next(new Error('Not authorized'));
}
In the socket.io Web client, this triggers the on("error") callback. However, in the Swift version it does not. By debugging the library, I notice that the error message is received (type 4), yet not dispatched to the on("error") callback. Maybe because "error" events are treated as internal messages?