BSD-3-Clause licensed by Lorenz Moesenlechner
Maintained by [email protected]
This version can be pinned in stack with:servant-websockets-2.0.0@sha256:6e9e3600bced90fd52ed3d1bf632205cb21479075b20d6637153cc4567000234,2253

Module documentation for 2.0.0

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 2.0.0

  • Add instance for WebsocketSource.
  • Update to Servant 0.16.
  • Move from Conduit to ConduitT.

Version 1.1.0

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

Version 1.0.0

  • Initial release of servant-websockets.