Send WebSocket Message
Sends a text message to a WebSocket server, e.g. Streamer.bot, Home Assistant or a chat service, and can wait for its reply. Uses the connection a WebSocket Message trigger already keeps open to the same address, otherwise connects for this step and closes again.
In the editor, press Space on the canvas to add a step, then open Actions > Web, or type its name. In Simple mode it's under Show all, and search finds it.
Settings
URL
A web address RequiredThe server's WebSocket address, e.g. ws://192.168.1.20:8080/ or wss://example.com/socket. An address that holds a token belongs in Password mode.
Message
TextThe text sent, often JSON. ${variables} are filled in.
Wait for a reply
On or offOn: continues once the server sends a message back (or the time limit passes).
Reply must contain
TextOnly a reply holding this text counts, e.g. the request's id. Empty: the next message.
Authorization
TextSent as the Authorization header, e.g. Bearer and the token. Stored as a password.
Headers
Text More optionsOne per line, e.g. Origin: https://example.com
Time limit (ms)
A duration More optionsFor connecting, sending and the reply. 0 waits as long as it takes.
Where it continues
- Success: Continues here when the answer has a 2xx status.
- Failed: Continues here when it fails; the reason is in the run log.
Outputs
Values the step gives to the steps after it. In the Graph view, drag a wire from an output to another step's field.
| Output | Gives | What it is |
|---|---|---|
| Reply | Text | The reply's text; empty without Wait for a reply. |
| Error | Text | Why it failed; empty when it worked. |
Good to know
- Fields marked as passwords keep their value in the Windows password vault, never in the macro.