removing unused var
catch invalid json
don't send back a websocket until it's connected + moved socket namespace assignment out of setup function
handle session related socket commands