orus-io/elm-nats/1.0.0

Nats.Effect

The Nats Effect API

If you are familiar with the core Cmd api, you will feel at home here

none : Effect datatype msg

Tell nats there are no effect

map : (a -> b) -> Effect datatype a -> Effect datatype b

Transform the messages produced by an effect

batch : List (Effect datatype msg) -> Effect datatype msg

Batch several nats effect, pretty much like Cmd.batch

onSocket : String -> Effect datatype msg -> Effect datatype msg

Set / change the socket on which the effect should apply

setRequestMarker : String -> Effect datatype msg -> Effect datatype msg

if the effect is a single request, set its marker to the given one