Event (Subscribe)
Events are messages generated by client actions or operations; e.g., join or leave notifications. Events may be generated by Amazon IVS Chat or your application. Use SendEvent (see the Amazon IVS Chat API Reference) to push event messages to the room.
Format
{ "Attributes": { "string": "string" }, "EventName": "string", "Id": "string", "RequestId" : "string", "SendTime": "string::date-time", "Type": "EVENT" }
Fields
Field | Description |
---|---|
|
For application-generated events, this contains details of the event; e.g.,
For the system-generated event
(
|
|
For application-generated events, this is preferably an enum used by client logic; e.g.,
There is one system-generated event. Its
|
|
An identifier generated by Amazon IVS Chat. |
|
An identifier optionally specified by your application (in the corresponding SendEvent) for tracking purposes. |
|
Timestamp of when the message was received by Amazon IVS Chat. |
|
|