Ejemplo n.º 1
0
 def opened(self):
     self._log("opened")
     # Currently (v0.3.3), subprotocols are not supported.
     # if not "wswrapper" in self.protocols:
     #     self.close(reason="Subprotocol 'wswrapper' is required.")
     #     return
     # if "msgpack" in self.protocols:
     #     self._is_msgpack_used = True
     # else:
     #     self._is_msgpack_used = False
     self._is_msgpack_used = None # unknown
     myapp.on_open(self)
Ejemplo n.º 2
0
 def open(self):
     logging.info("opened.")
     myapp.on_open(self)