def METHOD_NAME(self, url_component=None):
    """Websocket connection opened.
    Call our terminal manager to get a terminal, and connect to it as a
    client.
    """
    # Jupyter has a mixin to ping websockets and keep connections through
    # proxies alive. Call super() to allow that to set up:
    super(terminado.TermSocket, self).METHOD_NAME(url_component)
    cwd = self.get_argument('cwd', None, True)
    term_name = self.get_argument('term_name', None, True)
    term_name = term_name if term_name else 'tty'
    self._logger.info("TermSocket.open: %s", term_name)
    self.__initialize_terminal(term_name, cwd=cwd)