Send Message or Signal to PubNub Channel
send_pubnub_messagePublish real-time messages or lightweight signals to a PubNub channel. Provide channel, message payload, publish key, and subscribe key.
Instructions
Send a message or signal to a PubNub channel in real-time. Supports both regular messages and lightweight signals. Plain strings are automatically wrapped in a 'text' field. Requires publish and subscribe keys from your PubNub keyset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | Channel ID to publish message to | |
| message | Yes | Message payload (can be any JSON-serializable value or plain string) | |
| type | No | Type of message to publish: 'message' for regular messages or 'signal' for lightweight signals | message |
| publishKey | Yes | Publish Key that can be obtained from your keyset by manage_keysets tool with parameter operation list or in PubNub admin portal | |
| subscribeKey | Yes | Subscribe Key that can be obtained from your keyset by manage_keysets tool with parameter operation list or in PubNub admin portal |