Exemple #1
0
 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()
Exemple #2
0
 def __init__(self, environ, **config):
     BaseApp.__init__(self, environ, **config)
     # connect
     self.connect("/pong", action="pong")