Std.Sub
Std.Sub — TEA-side inbound subscriptions (Layer 3 Sky source).
Types
type ConnectionState = Online | Reconnecting | Offline { pending : Int }
Values
batch : List (Sub msg) -> Sub msg
`batch subs` — combine multiple subscriptions into one. Composes
connection : (ConnectionState -> msg) -> Sub msg
`connection toMsg` — receive the client's `ConnectionState` on every
every : Int -> msg -> Sub msg
`every intervalMillis msg` — dispatch `msg` every
everyWithTime : Int -> (Int -> msg) -> Sub msg
`everyWithTime intervalMillis toMsg` — like `every`, but each tick's Msg
none : Sub msgonBreakpoint : List Int -> (Int -> msg) -> Sub msg
`onBreakpoint widths toMsg` — receive the viewport width as one of your
onFragment : (String -> msg) -> Sub msg
`onFragment toMsg` — receive the URL fragment (the text after `#`, as
onQuery : (Dict String String -> msg) -> Sub msg
`onQuery toMsg` — receive the URL query string (`?page=2&sort=name`),
subscribeTopic : String -> (any -> msg) -> Sub msg
`subscribeTopic topic toMsg` — receive pub/sub broadcasts on
viewport : (Int -> msg) -> Sub msg
`viewport toMsg` — receive the viewport width in CSS pixels, so a view