@hackage servant-websockets2.0.0
Small library providing WebSocket endpoints for servant.
Categories
License
BSD-3-Clause
Maintainer
moesenle@gmail.com
Links
Versions
Installation
Dependencies (14)
- aeson
- async
- base >=4.7 && <5
- bytestring
- conduit
- exceptions Show all…
Dependents (3)
@hackage/servant-aeson-generics-typescript, @hackage/suavemente, @hackage/slab
Introduction
This small library provides two servant endpoints for implementing
websockets and is based on websockets and wai-websockets.
This library provides three servant endpoints: WebSocket, WebSocketPending and
WebSocketConduit. WebSocket is is a low-level interface for directly
interacting with a Connection (see the
websockets library
for more information). WebSocketPending allows using the rejectRequest
with various return codes for greater control. WebSocketConduit provides a
conduit based endpoint
for JSON serializable input and output.
See the module documentation for examples.