Module Values.SendEventRequestSource

Sends an event to a room. Use this within your application’s business logic to send events to clients of a room; e.g., to notify clients to change the way the chat UI is rendered.

Sourcetype nonrec t = {
  1. roomIdentifier : RoomIdentifier.t;
    (*

    Identifier of the room to which the event will be sent. Currently this must be an ARN.

    *)
  2. eventName : EventName.t;
    (*

    Application-defined name of the event to send to clients.

    *)
  3. attributes : EventAttributes.t option;
    (*

    Application-defined metadata to attach to the event sent to clients. The maximum length of the metadata is 1 KB total.

    *)
}
Sourceval context_ : string
Sourceval make : ?attributes:??? -> roomIdentifier:RoomIdentifier.t -> eventName:EventName.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Map of ([> `String of String_.t ] * [> `String of String_.t ]) list | `String of RoomIdentifier.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t