parameters: (server, web_socket_port)
docstring: Kills given websockify process for a server and websocket port
      :param server: address of server
      :param web_socket_port: web socket port
      :return: boolean
docstring_summary: Kills given websockify process for a server and websocket port
      :param server: address of server
      :param web_socket_port: web socket port
      :return: boolean
docstring_tokens: Kills given websockify process for a server and websocket port : param server : address of server : param web_socket_port : web socket port : return : boolean
function: def kill_web_socket(server, web_socket_port):
      """
      Kills given websockify process for a server and websocket port
      :param server: address of server
      :param web_socket_port: web socket port
      :return: boolean
      """
      logger.debug("Killing webConsole sessions")
      cmd = 'ps -ef | grep "websockify.py ' + server + ':' + web_socket_port + \
            '" | awk \'{ print $2 }\' | xargs -n 1 kill'
      logger.debug("Running cmd: " + cmd)
      rt = os.system(cmd)
      if rt == 0:
          return True
      else:
          return False
function_tokens: def kill_web_socket ( server , web_socket_port ) : logger . debug ( "Killing webConsole sessions" ) cmd = 'ps -ef | grep "websockify.py ' + server + ':' + web_socket_port + '" | awk \'{ print $2 }\' | xargs -n 1 kill' logger . debug ( "Running cmd: " + cmd ) rt = os . system ( cmd ) if rt == 0 : return True else : return False