Working socketio server, just have to add checks on page load