For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
ReferenceGuidesClick-to-Call
ReferenceGuidesClick-to-Call
  • Core
    • Overview
  • SignalWire Client
    • Overview
    • Notifications
    • Client
    • Utility functions
  • Video
    • Overview
    • LocalOverlay
    • RoomSession
    • RoomSessionDevice
    • RoomSessionPlayback
    • RoomSessionRecording
    • RoomSessionScreenShare
    • RoomSessionStream
    • RoomDevice
    • RoomScreenShare
  • Chat
    • Overview
    • Client
      • Events
        • disconnect
        • getAllowedChannels
        • getMembers
        • getMemberState
        • getMessages
        • off
        • on
        • once
        • publish
        • removeAllListeners
        • setMemberState
        • subscribe
        • unsubscribe
        • updateToken
    • ChatMember
    • ChatMemberEntity
    • ChatMessage
    • ChatMessageEntity
  • PubSub
    • Overview
    • Client
    • PubSubMessage
  • WebRTC
    • Overview
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Parameters
  • Returns
  • Example
ChatClientMethods

getMembers

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

getMemberState

Next
Built with
  • getMembers(params): Promise<{ members: ChatMemberEntity[] }> - See ChatMemberEntity documentation for more details.

Returns the list of members in the given channel.

Parameters

params
objectRequired

Configuration object for getting members

params.channel
stringRequired

The channel for which to get the list of members.

Returns

Promise<{ members: ChatMemberEntity[] }> - See ChatMemberEntity documentation for more details.

Example

1const m = await chatClient.getMembers({ channel: "my-channel" });
2
3m.members.length; // 7
4m.members[0]; // { id: ..., channel: ..., state: ... }