wai-websockets-2.0.0.1: Provide a bridge betweeen WAI and the websockets package.

Safe HaskellNone

Network.Wai.Handler.WebSockets

Synopsis

Documentation

intercept :: ServerApp -> Request -> Maybe (Source IO ByteString -> Connection -> IO ())Source

For use with settingsIntercept from the Warp web server.

interceptWith :: ConnectionOptions -> ServerApp -> Request -> Maybe (Source IO ByteString -> Connection -> IO ())Source

Variation of intercept which allows custom options.