def __init__(self, sock, addr): Endpoint.__init__(self, sock, addr) Greenlet.__init__(self) self.observers = BatchList() self.gamedata = Gamedata() self.cmd_listeners = defaultdict(WeakSet) self.current_game = None
def __init__(self, url, options=None): Endpoint.__init__(self, "") self._url = url self._client = self self.default_options = options or {} self._session = None self.persist_session = True # setup authenticator if "authentication" in self.default_options: self._setup_authentication(self.default_options["authentication"])
def __init__(self, sock, addr): Endpoint.__init__(self, sock, addr) Greenlet.__init__(self) self.ctlcmds = Channel() self.gamedata = Gamedata(recording=True)