kopia lustrzana https://github.com/cirospaciari/socketify.py
add clone method in websocket
rodzic
df53e84351
commit
b18d2960a3
|
@ -1143,6 +1143,11 @@ class WebSocket:
|
||||||
self.socket_data = None
|
self.socket_data = None
|
||||||
self.got_socket_data = False
|
self.got_socket_data = False
|
||||||
|
|
||||||
|
|
||||||
|
def clone(self):
|
||||||
|
# clone and preserve this websocket in another instance
|
||||||
|
return WebSocket(self.websocket, self.app)
|
||||||
|
|
||||||
def trigger_for_each_topic_handler(self, topic):
|
def trigger_for_each_topic_handler(self, topic):
|
||||||
if hasattr(self, "_for_each_topic_handler") and hasattr(
|
if hasattr(self, "_for_each_topic_handler") and hasattr(
|
||||||
self._for_each_topic_handler, "__call__"
|
self._for_each_topic_handler, "__call__"
|
||||||
|
|
Ładowanie…
Reference in New Issue