Actions62
- SQL Actions
- Client Access Actions
- User Access Actions
- Tools Actions
- HTML to PDF
- Markdown to PDF
- Text to PDF
- Merge PDFs
- Split PDF
- Extract PDF Text
- Resize Image
- Convert Image
- Compress Image
- Add Image Watermark
- Create Thumbnail
- Generate Barcode
- Read Barcode
- Validate CPF/CNPJ
- Format CPF/CNPJ
- Generate UUID
- Transform JSON
- CSV to JSON
- JSON to CSV
- Normalize Text
- Extract Regex Fields
- Validate JSON Schema
- Generate Hash
- HMAC Sign
- Base64 Encode/Decode
- JWT Decode
- Encrypt Text
- Decrypt Text
- Format Date
- Parse Date
- Add Business Days
- Format Currency
- Number to Words
- Build Socket Event Payload
- Validate Client Token
- Validate Agent Context
- Build SQL Request
- Parse SQL Rows
- Generate Access Request Summary
- Publish Socket Event
- Wait for Socket Event
Tools → Publish Socket Event
AI-generatedSummary
Publish a custom socket event to the Plug system using either REST or socket transport, sending a JSON payload and optional binary attachments to subscribers.
Inputs
- Tool Category — Select a category of tools to filter or categorize the operation usage, though it is not directly related to the publishing action.
- Publish Channel (required) — Choose the transport protocol for publishing the event: REST (via HTTP POST to /client/me/socket-events) or Socket (via socket:event.publish on /consumers).
- Event Name (required) — Specify the exact custom event name to publish, which must start with 'client:custom:'. This identifies the event to subscribers.
- Payload JSON (required) — Provide the JSON object to be delivered as the event payload. Use null to send a null payload.
- Attachments — Optionally add one or more binary data properties from the workflow input to be sent inline as socket event attachments.
- Payload Frame Compression — Set the compression preference for the payload frame when emitting the event, choosing 'Always', 'Default', or 'None' compression.
- Idempotency Key — Optionally provide a string key to ensure idempotent publishing; reusing the same key with the same body returns the original accepted response.
- Timeout (MS) — Specify the timeout in milliseconds for REST publishing requests; not used for socket publishing.
- Socket ACK Timeout (MS) — Specify the timeout in milliseconds to wait for acknowledgments when publishing via socket transport.
- Include Plug Metadata — Set whether to include the '__plug' metadata object with channel and event details in the node output.
Output shape
a single record containing the published event confirmation and optionally metadata about the channel and event
The output format depends on the chosen publish channel and includes acknowledgments or error information. If 'Include Plug Metadata' is enabled, the output contains the internal Plug event metadata.