servant-websockets

Small library providing WebSocket endpoints for servant. https://github.com/moesenle/servant-websockets#readme

Version on this page:1.1.0
LTS Haskell 15.14:2.0.0
Stackage Nightly 2020-06-01:2.0.0
Latest on Hackage:2.0.0

See all snapshots servant-websockets appears in

BSD-3-Clause licensed by Lorenz Moesenlechner
Maintained by [email protected]

Module documentation for 1.1.0

This version can be pinned in stack with:[email protected]:3e384b0565a081f83da8935cccc0817fda120af9119befe55a0515efc4a44bfc,2188

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.

Changes

Version 1.1.0

  • Compatibility with servant-0.12.
  • Added instance for WebSocketPending.

Version 1.0.0

  • Initial release of servant-websockets.