parameters: (self)
docstring: Called after Websockets server startup (i.e. after daemonize)
docstring_summary: Called after Websockets server startup (i.e. after daemonize)
docstring_tokens: Called after Websockets server startup ( i . e . after daemonize )
function: def started(self):
          """
          Called after Websockets server startup (i.e. after daemonize)
          """
          # Need to call wrapped command after daemonization so we can
          # know when the wrapped command exits
          if self.wrap_cmd:
              dst_string = "'%s' (port %s)" % (" ".join(self.wrap_cmd), self.target_port)
          elif self.unix_target:
              dst_string = self.unix_target
          else:
              dst_string = "%s:%s" % (self.target_host, self.target_port)
  
          if self.target_cfg:
              msg = "  - proxying from %s:%s to targets in %s" % (
                  self.listen_host, self.listen_port, self.target_cfg)
          else:
              msg = "  - proxying from %s:%s to %s" % (
                  self.listen_host, self.listen_port, dst_string)
  
          if self.ssl_target:
              msg += " (using SSL)"
  
          print(msg + "\n")
  
          if self.wrap_cmd:
              self.run_wrap_cmd()
function_tokens: def started ( self ) : # Need to call wrapped command after daemonization so we can # know when the wrapped command exits if self . wrap_cmd : dst_string = "'%s' (port %s)" % ( " " . join ( self . wrap_cmd ) , self . target_port ) elif self . unix_target : dst_string = self . unix_target else : dst_string = "%s:%s" % ( self . target_host , self . target_port ) if self . target_cfg : msg = "  - proxying from %s:%s to targets in %s" % ( self . listen_host , self . listen_port , self . target_cfg ) else : msg = "  - proxying from %s:%s to %s" % ( self . listen_host , self . listen_port , dst_string ) if self . ssl_target : msg += " (using SSL)" print ( msg + "\n" ) if self . wrap_cmd : self . run_wrap_cmd ( )