Provides a sensible, clean and simple way to write WebSocket server and client in Haskell.
- Provides Server/Client implementations of the websocket protocol
withPingPong
helper for stale connection checking- TLS support via wuss package
send
doesn't support streaming- Requires careful handling of exceptions
- DeflateCompression isn't thread-safe
See server and client implementations.
Using cabal:
$ cabal install websockets
An initial WebSockets library was written in 2010 by Siniša Biđin. In 2011, it was rewritten from scratch, and extended to its current state by Jasper Van der Jeugt, who is also the current maintainer.
Contributors:
- Alex Lang
- Carl Chatfield
- Fedor Gogolev
- Marcin Tolysz
- Nathan Howell
- Steffen Schuldenzucker
- Yi Huang
- Domen Kožar
Pull requests are always welcome!
This library is production-quality. Therefore we have very high standards in terms of code style, API quality and testing.
We have three kinds of tests:
- Haskell-based tests (
tests/haskell
), which use thetest-framework
library - Integration tests, available in
tests/javascript
. These require a browser to run. - We also run the extensive autobahn testsuite.