jon.recoil.org

Module Message.Ev

Message events.

Message event object

type t

The type for MessageEvent and ExtendableMessageEvent objects.

as_extendable e is e as an extendable event. Warning. only for ExtendableMessageEvents objects.

val data : Brr_io.Message.Ev.t -> 'a

data e is the data send by the emitter. Warning. Unsafe, make sure to constrain the result value to the right type.

val origin : Brr_io.Message.Ev.t -> Jstr.t

origin e is the origin of the message emitter.

val last_event_id : Brr_io.Message.Ev.t -> Jstr.t

last_event_id e is a unique id for the event.

val source : Brr_io.Message.Ev.t -> Jv.t option

source e is the message emitter.

ports e is a list of ports associated with the channel the message is being send through (if applicable).

Events

message is the message event.

messageerror is the messageerror event.