Listen on the event stream.
GET {{baseUrl}}/events?from=s3456_9_0&timeout=56303853
This will listen for new events and return them to the caller. This will
block until an event is received, or until the timeout
is reached.
This endpoint was deprecated in r0 of this specification. Clients
should instead call the /sync
endpoint with a since
parameter. See
the migration guide.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
from | string | The token to stream from. This token is either from a previous | |
request to this API or from the initial sync API. | |||
timeout | number | The maximum time in milliseconds to wait for an event. |
RESPONSES
status: OK
{"start":"s3456_9_0","end":"s3457_9_0","chunk":[{"$ref":"../../event-schemas/examples/m.room.message$m.text.yaml"}]}