hivent v3.0.0 Hivent.Emitter
The Hivent Emitter module. It emits signals into a Hivent Server instance through a Websocket.
Summary
Functions
Emits the given event with name, payload and options
Options
:version
:cid
optional:key
optional, will be derived frompayload
by default. It controls which partition the event is stored in.
Example
Emitter.emit(
"my:event",
%{foo: "bar"},
%{version: 1, cid: "a_correlation_id"}
)
Starts the Emitter process. All options are required.
Options
:host
:port
:path
:secure
:client_id
:api_key
Types
Return values of start*
functions
Functions
Emits the given event with name, payload and options
Options
:version
:cid
optional:key
optional, will be derived frompayload
by default. It controls which partition the event is stored in.
Example
Emitter.emit(
"my:event",
%{foo: "bar"},
%{version: 1, cid: "a_correlation_id"}
)
Starts the Emitter process. All options are required.
Options
:host
:port
:path
:secure
:client_id
:api_key