MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / send_websocket_update_sync

Function send_websocket_update_sync

core/utils.py:470–473  ·  view source on GitHub ↗

Send a WebSocket group message synchronously via Redis (channels_redis wire format).

(group_name, event_type, data)

Source from the content-addressed store, hash-verified

468
469
470def send_websocket_update_sync(group_name, event_type, data):
471 """Send a WebSocket group message synchronously via Redis (channels_redis wire format)."""
472 message = {'type': event_type, 'data': data}
473 _gevent_ws_send(group_name, message)
474
475
476def send_websocket_update(group_name, event_type, data, collect_garbage=False):

Callers

nothing calls this directly

Calls 1

_gevent_ws_sendFunction · 0.85

Tested by

no test coverage detected