You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.2 KiB
ReStructuredText
53 lines
1.2 KiB
ReStructuredText
9 years ago
|
Event Structure
|
||
|
===============
|
||
10 years ago
|
|
||
10 years ago
|
All communication in Matrix is expressed in the form of data objects called
|
||
10 years ago
|
Events. These are the fundamental building blocks common to the client-server,
|
||
|
server-server and application-service APIs, and are described below.
|
||
10 years ago
|
|
||
10 years ago
|
{{common_event_fields}}
|
||
10 years ago
|
|
||
10 years ago
|
{{common_room_event_fields}}
|
||
10 years ago
|
|
||
10 years ago
|
{{common_state_event_fields}}
|
||
10 years ago
|
|
||
|
|
||
9 years ago
|
Size limits
|
||
|
-----------
|
||
|
|
||
|
The total size of any event MUST NOT exceed 65 KB. There are additional
|
||
|
restrictions on sizes per key:
|
||
|
|
||
|
- ``user_id`` MUST NOT exceed 255 bytes (including domain).
|
||
|
- ``room_id`` MUST NOT exceed 255 bytes.
|
||
|
- ``state_key`` MUST NOT exceed 255 bytes.
|
||
|
- ``type`` MUST NOT exceed 255 bytes.
|
||
|
- ``event_id`` MUST NOT exceed 255 bytes.
|
||
|
|
||
9 years ago
|
Some event types have additional size restrictions which are specified in
|
||
9 years ago
|
the description of the event. Additional keys have no limit other than that
|
||
|
implied by the total 65 KB limit on events.
|
||
|
|
||
10 years ago
|
Room Events
|
||
|
-----------
|
||
|
.. NOTE::
|
||
|
This section is a work in progress.
|
||
|
|
||
|
This specification outlines several standard event types, all of which are
|
||
|
prefixed with ``m.``
|
||
|
|
||
9 years ago
|
{{m_room_aliases_event}}
|
||
|
|
||
9 years ago
|
{{m_room_canonical_alias_event}}
|
||
9 years ago
|
|
||
|
{{m_room_create_event}}
|
||
|
|
||
|
{{m_room_join_rules_event}}
|
||
|
|
||
|
{{m_room_member_event}}
|
||
|
|
||
|
{{m_room_power_levels_event}}
|
||
|
|
||
|
{{m_room_redaction_event}}
|
||
10 years ago
|
|