mkDigitalWorldEvent
mkDigitalWorldEvent(
opts):DigitalWorldEvent
Defined in: src/testing.ts:37
Create a DigitalWorldEvent.
Parameters
Section titled “Parameters”Values for the event.
content
Section titled “content”Content of the event.
eventId?
Section titled “eventId?”string
Optional event_id for the event. If provided will be used as event ID; else an ID is generated.
roomId
Section titled “roomId”string
Room ID of the event.
sender
Section titled “sender”string
The sender of the event.
stateKey?
Section titled “stateKey?”string
Optional state_key for the event. If unspecified, a non-state event is created.
number
Optional origin_server_ts for the event. If unspecified, the timestamp will be set to 0.
string
The type of the event.
unsigned?
Section titled “unsigned?”Optional unsigned data for the event.