websockets: A sensible and clean way to write WebSocket-capable servers in Haskell.

[ bsd3, library, network ] [ Propose Tags ]

This library allows you to write WebSocket-capable servers.

An example server: https://github.com/jaspervdj/websockets/blob/master/example/server.lhs

An example client: https://github.com/jaspervdj/websockets/blob/master/example/client.hs

This package only supports insecure (ws://...) WebSockets. If you need secure (wss://...) websockets, consider using Wuss: https://hackage.haskell.org/package/wuss

See also:


Manual Flags


Build the example server


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, (info)
Change log CHANGELOG
Dependencies async (>=2.2 && <2.3), attoparsec (>=0.10 && <0.15), base (>=4.14 && <5), base64-bytestring (>=0.1 && <1.3), binary (>=0.8.1 && <0.11), bytestring (>=0.9 && <0.13), case-insensitive (>=0.3 && <1.3), containers (>=0.3 && <0.7), entropy (>=0.2.1 && <0.5), mtl, network (>=2.3 && <3.3), random (>=1.0.1 && <1.3), SHA (>=1.5 && <1.7), streaming-commons (>=0.1 && <0.3), text (>=0.10 && <2.2), websockets [details]
License BSD-3-Clause
Copyright (c) 2010-2011 Siniša Biđin (c) 2011-2018 Jasper Van der Jeugt (c) 2011 Steffen Schuldenzucker (c) 2011 Alex Lang
Author Siniša Biđin <sinisa@bidin.cc> Jasper Van der Jeugt <m@jaspervdj.be> Steffen Schuldenzucker <steffen.schuldenzucker@googlemail.com> Alex Lang <lang@tsurucapital.com> Domen Kožar
Maintainer Jasper Van der Jeugt <m@jaspervdj.be>
Revised Revision 2 made by JasperVanDerJeugt at 2024-05-19T09:50:16Z
Category Network
Home page http://jaspervdj.be/websockets
Bug tracker https://github.com/jaspervdj/websockets/issues
Source repo head: git clone https://github.com/jaspervdj/websockets
Uploaded by JasperVanDerJeugt at 2023-12-30T08:15:48Z
Distributions Arch:, Debian:, Fedora:, LTSHaskell:, NixOS:, Stackage:
Reverse Dependencies 121 direct, 3448 indirect [details]
Executables websockets-autobahn, websockets-client-example, websockets-server-example
Downloads 112669 total (533 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-12-30 [all 1 reports]