wss-client

A-little-higher-level WebSocket client.

https://github.com/iij-ii/wss-client

Version on this page:0.2.1.1
LTS Haskell 22.14:0.3.0.0
Stackage Nightly 2023-12-26:0.3.0.0
Latest on Hackage:0.3.0.0

See all snapshots wss-client appears in

BSD-3-Clause licensed by Yuji Yamamoto
Maintained by [email protected]
This version can be pinned in stack with:wss-client-0.2.1.1@sha256:3b2d7620e31e792fcae1b71b84b12cf9537cc1649654e4949a90fc5920f6ae02,2004

Module documentation for 0.2.1.1

wss-client

A-little-higher-level WebSocket client library.
Thanks to http-client and http-client-tls, this package supports HTTP_PROXY environment variable and TLS.

TODO

  • Support non-TLS connection via an HTTP proxy server (I have to add one more API to http-client to check if the connection is proxied package to do that).
  • Add APIs to modify config of both http-client and websockets.

Example

An example program is here: app/sample.hs.
Build the executable by enabling build-sample flag:

stack unpack wss-client
cd wss-client-*
stack init
stack build wss-client --flag wss-client:build-sample
stack exec wss-client-sample