I have developped a little RESTFul API and want to add some realtime feature.
The fact is that I use OAuth2 basic auth with node-oauth2-server and I dont know how to manage socket.io authentication.
Does it exist a way, using middleware, to make it work exactly like oauth2, but for socket.io ?