Snap integration for the WebSockets library
- runWebSocketsSnap :: Protocol p => (Request -> WebSockets p ()) -> Snap ()
- runWebSocketsSnapWith :: Protocol p => WebSocketsOptions -> (Request -> WebSockets p ()) -> Snap ()
Documentation
runWebSocketsSnap :: Protocol p => (Request -> WebSockets p ()) -> Snap ()Source
The following function escapes from the current Snap
handler, and
continues processing the WebSockets
action. The action to be executed
takes the Request
as a parameter, because snap has already read this
from the socket.
runWebSocketsSnapWith :: Protocol p => WebSocketsOptions -> (Request -> WebSockets p ()) -> Snap ()Source
Variant of runWebSocketsSnap
which allows custom options