A Matrix event ID.

An EventId is generated randomly or converted from a string slice, and can be converted back into a string as needed.

Constructors

Properties

Methods

Constructors

  • Parse/validate and create a new EventId.

    Parameters

    • id: string

    Returns EventId

Properties

localpart: string

Returns the event's localpart.

serverName: undefined | ServerName

Returns the server name of the event ID.

Methods

  • Returns void

  • Return the event ID as a string.

    Returns string