Class: MatrixRoom

MatrixRoom

new MatrixRoom(roomId)

Create a matrix room.
Parameters:
Name Type Description
roomId string The room ID
Source:

Methods

deserialize(data)

Set data about this room from a serialized data object.
Parameters:
Name Type Description
data Object The serialized data
Source:

get(key) → {*}

Get the data value for the given key.
Parameters:
Name Type Description
key string An arbitrary bridge-specific key.
Source:
Returns:
Stored data for this key. May be undefined.
Type
*

getId() → {string}

Get the room ID.
Source:
Returns:
The room ID
Type
string

serialize() → {Object}

Serialize data about this room into a JSON object.
Source:
Returns:
The serialised data
Type
Object

set(key, val)

Set an arbitrary bridge-specific data value for this room.
Parameters:
Name Type Description
key string The key to store the data value under.
val * The data value. This value should be serializable via JSON.stringify(data).
Source: