Module

Stetson.WebSocket

#handler

handler :: forall msg state. InitHandler state -> StetsonHandler msg state

#init

init :: forall msg state. WebSocketInitHandler msg state -> StetsonHandler msg state -> StetsonHandler msg state

#handle

handle :: forall msg state. WebSocketHandleHandler msg state -> StetsonHandler msg state -> StetsonHandler msg state

#info

info :: forall msg state. WebSocketInfoHandler msg state -> StetsonHandler msg state -> StetsonHandler msg state

#initResult

initResult :: forall state. Req -> state -> Effect (InitResult state)

#terminate

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

liftEffect :: forall m a. MonadEffect m => Effect a -> m a

Re-exports from Erl.Process

#self

self :: forall a x. HasSelf x a => x (Process a)

Modules