All documentation
Messages

connection.send Function in Python

Send a websocket message in Python.

Python

Overview

Once connect(...) succeeds, use connection.send(...) to send live websocket messages.

Setup

Call send(text, ...) on the connection object returned by connect(...).

Code example

connection.send Function in Python
connection.send(
    "Hello from PulseGrid Python",
    meta={"source": "python_ws_message"},
)

Notes

Use this for live websocket messages from clients or services.