Message Type

A container data type for the output events

Record fields

Record Field Description

data

Full Usage: data

Field type: string
Field type: string

id

Full Usage: id

Field type: string
Field type: string

type

Full Usage: type

Field type: string option
Field type: string option

Static members

Static member Description

Message.create id data

Full Usage: Message.create id data

Parameters:
    id : string
    data : string

Returns: Message

Create a new message to send over SSE

id : string
data : string
Returns: Message

Message.createType id data typ

Full Usage: Message.createType id data typ

Parameters:
    id : string
    data : string
    typ : string

Returns: Message

Create a new message with a given type to send over SSE

id : string
data : string
typ : string
Returns: Message