websockets-snap-0.10.2.4: Snap integration for the websockets library

Safe HaskellNone
LanguageHaskell98

Network.WebSockets.Snap

Description

Snap integration for the WebSockets library

Synopsis

Documentation

runWebSocketsSnap :: MonadSnap m => ServerApp -> m () 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 :: MonadSnap m => ConnectionOptions -> ServerApp -> m () Source #

Variant of runWebSocketsSnap which allows custom options