Add various checks for socketio protocol