Module
Stetson.WebSocket
- Package
- erl-stetson
- Repository
- id3as/purescript-erl-stetson
#handler Source
handler :: forall msg state. InitHandler state -> StetsonHandler msg state
#init Source
init :: forall msg state. WebSocketInitHandler msg state -> StetsonHandler msg state -> StetsonHandler msg state
#handle Source
handle :: forall msg state. WebSocketHandleHandler msg state -> StetsonHandler msg state -> StetsonHandler msg state
#info Source
info :: forall msg state. WebSocketInfoHandler msg state -> StetsonHandler msg state -> StetsonHandler msg state
#initResult Source
initResult :: forall state. Req -> state -> Effect (InitResult state)
#terminate Source
terminate :: forall msg state. (Foreign -> Req -> state -> Effect Unit) -> StetsonHandler msg state -> StetsonHandler msg state
Add a terminate callback to the provided StetsonHandler
Re-exports from Effect.Class
#liftEffect Source
liftEffect :: forall m a. MonadEffect m => Effect a -> m a