You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Send a HiveMind message (or wrap and send a MycroftMessage) and optionally transmit it as a binary payload.
350
-
351
-
Parameters:
352
-
message (MycroftMessage | HiveMessage): The outgoing message. A MycroftMessage will be wrapped into a BUS HiveMessage.
353
-
binary_type (HiveMindBinaryPayloadType): Binary payload subtype to use when sending BINARY messages; defaults to UNDEFINED.
354
-
355
-
Behavior:
356
-
- For BUS messages, ensures payload.context contains routing fields (source, platform, destination, session_id, site_id) and emits the payload to the client's internal bus before sending.
357
-
- Chooses binary or text transport according to message type and client configuration; the payload may be compressed and/or encrypted based on client settings.
358
-
359
-
Raises:
360
-
ValueError: If the client has not been started (run_forever() not executed) and therefore cannot send messages.
361
-
RuntimeError: If the client was started but the websocket connection did not open within the wait period, preventing the message from being sent.
362
-
"""
349
+
Send a HiveMind message (or wrap and send a MycroftMessage) and optionally transmit it as a binary payload.
350
+
351
+
Parameters:
352
+
message (MycroftMessage | HiveMessage): The outgoing message. A MycroftMessage will be wrapped into a BUS HiveMessage.
353
+
binary_type (HiveMindBinaryPayloadType): Binary payload subtype to use when sending BINARY messages; defaults to UNDEFINED.
354
+
355
+
Behavior:
356
+
- For BUS messages, ensures payload.context contains routing fields (source, platform, destination, session_id, site_id) and emits the payload to the client's internal bus before sending.
357
+
- Chooses binary or text transport according to message type and client configuration; the payload may be compressed and/or encrypted based on client settings.
358
+
359
+
Raises:
360
+
ValueError: If the client has not been started (run_forever() not executed) and therefore cannot send messages.
361
+
RuntimeError: If the client was started but the websocket connection did not open within the wait period, preventing the message from being sent.
0 commit comments