Users

Methods

me()

Returns the current user information

usage :

await Livestorm.Users.me()

@returns a promise that resolves with the user information as a hash

everyone()

Returns an array containing all the currently connected people in the Room.
This list may change during the lifecycle of an event

usage :

await Livestorm.Users.everyone()

@returns a promise that resolves with the users information as an array

teamMembers()

Returns an array containing all the team members of the event.

usage :

await Livestorm.Users.teamMembers()

@returns a promise that resolves with the users information as an array

connectedCount()

Returns the number of the connected users of the event.

usage :

await Livestorm.Users.connectedCount()

@returns a promise that resolves with the number of the connected users

Interface

Here is what a User instance looks like :

{
  avatar: String,
  color: String,
  company_name: String,
  first_name: String,
  id: String,
  is_connected: Boolean,
  is_guest_speaker: Boolean,
  is_team_member: Boolean,
  job_title: String,
  last_name: String,
  pending: String,
  prepare: Boolean,
  prepare_enable_camera: Boolean,
  prepare_enable_microphone: Boolean,
}