Skip to main content

Joining and Leaving Users

add_user

A new user has joined the Eyeson room.

{
type: 'add_user',
user: {
id,
name,
avatar, // url to users avatar
guest: true | false
}
initial: true | false // initial connect or reconnect
}

remove_user

A user has left the Eyeson room.

{
type: 'remove_user',
userId,
user: {
id,
name,
avatar,
guest: true | false
}
}

stop_presenting

Stop a presentation.

eyeson.send({ type: 'stop_presenting' };