*** id: cc08bed3-cfa9-4e42-8e36-136bd24b1e76 title: PubSubMessage slug: /node/reference/pubsub/pubsub-message sidebar-title: PubSubMessage description: >- PubSubMessage object representing a message in a PubSub channel. Access message ID, content, channel, publisher ID, and metadata properties. max-toc-depth: 3 ---------------- Represents a message in a PubSub context. ## Properties ### channel The channel in which this message was sent. **Syntax:** `PubSubMessage.channel()` **Returns:** `string` *** ### content The content of this message. **Syntax:** `PubSubMessage.content()` **Returns:** `string` *** ### id The id of this message. #### Returns **Syntax:** `PubSubMessage.id()` **Returns:** `string` *** ### meta Any metadata associated to this message. **Syntax:** `PubSubMessage.meta()` **Returns:** `any` *** ### publishedAt The date and time at which this message was published. **Syntax:** `PubSubMessage.publishedAt()` **Returns:** `Date`