示例#1
0
文件: app.py 项目: s-shin/wswrapper
 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)
示例#2
0
文件: app.py 项目: s-shin/wswrapper
 def open(self):
     logging.info("opened.")
     myapp.on_open(self)