Join a user to a room
The roomId to join
Leave empty to act as the bot user.
The request entry for logging context
Should the request retry if it fails
How long should this request remain queued in milliseconds
before it's discarded. Defaults to opts.defaultTtlMs
A promise that resolves when the membership has completed
Leave OR kick a user from a room
The roomId to leave
Leave empty to act as the bot user.
The request entry for logging context
Should the request retry if it fails
Reason for leaving/kicking
The user to be kicked. If left blank, this will be a leave.
How long should this request remain queued in milliseconds
before it's discarded. Defaults to opts.defaultTtlMs
A promise that resolves when the membership has completed
This should be called after starting the bridge in order to track metrics for the membership queue.
Generated using TypeDoc
This class sends membership changes for rooms in a linearized queue. The queue is lineaized based upon the hash value of the roomId, so that two operations for the same roomId may never happen concurrently.