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

Safe HaskellNone

Network.WebSockets.Snap

Description

Snap integration for the WebSockets library

Synopsis

Documentation

runWebSocketsSnap :: ServerApp -> 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 :: ConnectionOptions -> ServerApp -> Snap ()Source

Variant of runWebSocketsSnap which allows custom options