Type Alias: SendEvent
SendEvent = (
data,event?,id?) =>void
Send an event of a stream; nothing is sent once the client has left.
Parameters
data
unknown
The event's data, serialized to JSON unless it is a string.
event?
string
The event's name; the clients' default event (message) when omitted.
id?
string
The event's id, which the client sends back as Last-Event-ID when it reconnects.
Returns
void