# websockets (Haskell)

> A Haskell library for creating WebSocket-capable servers

Source: https://talira.ai/catalog/websockets-haskell-66mfe278
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / websockets / servers](https://talira.ai/categories/libraries/websockets/servers), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^1][^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Jasper Van der Jeugt](https://talira.ai/orgs/jasper-van-der-jeugt.md)

websockets is a Haskell library for writing WebSocket servers, and clients, with a small API: accept a pending connection, then receive and send text or binary messages on it, with a withPingPong helper to detect stale connections. It handles only insecure `ws://` connections; for secure `wss://` its package description points to Wuss. An initial library by Siniša Biđin (2010) was rewritten in 2011 by Jasper Van der Jeugt, who maintains it.

## Links

- Website: https://jaspervdj.be/websockets/
- GitHub: https://github.com/jaspervdj/websockets

## Problems it solves

- add a WebSocket server to my Haskell application
- push live updates from a Haskell backend to the browser
- connect to a WebSocket server from Haskell

## Features

- WebSocket server and client in Haskell
- text and binary messages over a simple connection API
- withPingPong helper to detect stale connections
- example echo server and client in the repository

## Limitations

- Supports only insecure ws:// connections; secure wss:// needs another library such as Wuss.[^1]

## Trust

Overall: 0.41 out of 1.
Signals: maintenance 0.48, adoption 0.52, momentum 0.16, community 0.74, backing 0.30, extensibility 0.00.

- last commit 57 days ago
- 4 commits in the last 90 days
- 417 GitHub stars
- 69 contributors
- backed by Jasper Van der Jeugt

## Sources

[^1]: https://github.com/jaspervdj/websockets/blob/master/websockets.cabal (checked 28 Nov 2026)
[^2]: https://github.com/jaspervdj/websockets/blob/master/LICENCE (checked 28 Nov 2026)
