implement new websocket-beta server (also tweaked the socketio connect to make it work)