def __init__(self, environ, **config): BaseApp.__init__(self, environ, **config) # url mapping self.connect("/socket", action="call") # open sockets self.urls = dict() self.__open_sockets()
def __init__(self, environ, **config): BaseApp.__init__(self, environ, **config) # connect self.connect("/pong", action="pong")