socketio-auth
socketio-auth copied to clipboard
Need way to de-authenticate.
Something like
delete socket.auth;
socket.disconnect();
doesn't do the trick?
yes, that would be one way to do it... but wouldn't it be more "socket.io"-y to emit a unauthorized
event.. and similarly.. NOT disconnect
the host socket.. but leave it open, for possible re-authentication, manipulation, etc?
bump --- i was hoping to use 'deauthenticate` in my example app :-)
I have a need for this as well.
I'm not currently spending time on this project, but PRs are welcome.
If I have a couple extra cycles, I'll take a stab at it. I just worked around it using my redux flow for now with an auto reconnect.