plinth/browser/message_event

Types

pub type MessageEvent =
  event.Event(T)
pub type T

Values

pub fn data(event: event.Event(T)) -> dynamic.Dynamic

The data sent by the message emitter.

pub fn last_event_id(event: event.Event(T)) -> String

A string representing a unique ID for the event.

pub fn origin(event: event.Event(T)) -> String

A string representing the origin of the message emitter.

Search Document