File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -621,15 +621,17 @@ def ws_client(self, value):
621621 self ._ws_client = value
622622
623623 @property
624- def coordinator_ws (self ):
624+ def coordinator_ws (self ) -> Optional [ StreamAPIWS ] :
625625 """The coordinator WebSocket receiving call-scoped events.
626626
627627 Available after connecting. Use ``ws.on()`` or ``ws.on_wildcard()``
628628 to subscribe to events. Send custom events via ``call.send_call_event()``.
629629
630630 Returns None if not connected.
631631 """
632- return self ._coordinator_ws_client
632+ if self ._coordinator_ws_client and self ._coordinator_ws_client ._connected :
633+ return self ._coordinator_ws_client
634+ return None
633635
634636 # Publisher / Subscriber peer-connection shortcuts
635637 @property
You can’t perform that action at this time.
0 commit comments