SDK Reference
Methods
Deprecated
SetGroupMembers

setGroupMembers

⚠️

Groups have been deprecated in favor of Contexts. If you're considering Groups for your project, check out createContext instead.


Allows users to join or leave a group.

User must have an active session for this query to work.

How to use?

const res = await orbis.setGroupMembers(group_id, isMember);

Parameters

  • group_id - (stream) ID of the group
  • isMember - boolean used to join or leave a group, true or false respectively

Returns

{
  status: 200,
  doc: "kjzl6cwe1...e4wvxhiqj",
  result: "Success creating TileDocument."
}