'Analyze the security of a web socket
:param web_socket_url: The URL of the web socket
:param web_socket_version: The protocol version
:return: None, results (if any) are stored to the KB'

def check_websocket_security(self, web_socket_url, web_socket_version):

    known_checks = (self.check_is_open_web_socket, self.check_is_restricted_by_origin_with_match_bug, self.check_is_restricted_by_origin, self.check_need_basic_auth_origin_not_restricted, self.check_need_cookie_origin_not_restricted)
    for check in known_checks:
        if check(web_socket_url, web_socket_version):
            break
