PubNub icon

PubNub

Interact with PubNub real-time messaging platform

Presence → Here Now

AI-generated

Summary

Retrieves current occupancy information for one or more PubNub channels (or globally if no channels are specified).

Inputs

  • channels — Comma-separated list of channels. Leave empty for global here now. Evaluated per input item; can use expressions. Default is an empty string (global).

Output shape

object

For each input item, the node returns the PubNub hereNow response for the requested channel(s). The response always includes the occupancy count and, depending on the options, may include an array of UUIDs and/or state objects per channel.

Examples

Example 1: Get global occupancy with UUIDs (default) and no state.

Leave the Channels field blank. Keep Include UUIDs enabled (default) and Include State disabled (default).

Example 2: Check occupancy of specific channels, including state information.

Set Channels to 'chat,notifications'. Enable Include State. Keep Include UUIDs as desired.

Discussion