View Source SpawnSdk.Flow.Broadcast (spawn_sdk v0.5.0-alpha.6)

Link to this section Summary

Link to this section Types

@type channel() :: String.t()
@type command() :: String.t() | atom()
@type payload() :: module() | nil
@type t() :: %SpawnSdk.Flow.Broadcast{
  channel: String.t(),
  command: String.t() | atom(),
  payload: module()
}

Link to this section Functions

@spec to(channel(), payload()) :: t()
Link to this function

to(channel, command, payload)

View Source
@spec to(channel(), command(), payload()) :: t()