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

Safe HaskellNone
LanguageHaskell98

Network.Wai.Handler.WebSockets

Documentation

websocketsApp :: ConnectionOptions -> ServerApp -> Request -> Maybe Response Source

websocketsOr :: ConnectionOptions -> ServerApp -> Application -> Application Source

getRequestHead :: Request -> RequestHead Source

runWebSockets :: ConnectionOptions -> RequestHead -> (PendingConnection -> IO a) -> IO ByteString -> (ByteString -> IO ()) -> IO a Source