exchanged socketio with ws because socket.io is using engine.io for websockets
added way to find out if user is authenticated