wss-client: A-little-higher-level WebSocket client.

[ bsd3, library, network ] [ Propose Tags ] [ Report a vulnerability ]

A-little-higher-level WebSocket client. Based on http-client and http-client-tls.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Flags

Manual Flags

NameDescriptionDefault
build-sample

Build sample file.

Disabled

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.2.0.0, 0.2.1.0, 0.2.1.1, 0.3.0.0
Dependencies base (>=4.7 && <5), bytestring, http-client (>=0.5.13), http-client-tls, network-uri, websockets (>=0.12.6 && <0.13), wss-client [details]
License BSD-3-Clause
Author Yuji Yamamoto
Maintainer yuji-yamamoto@iij.ad.jp
Category Network
Home page https://github.com/iij-ii/direct-hs/tree/master/wss-client
Source repo head: git clone https://github.com/iij-ii/direct-hs
Uploaded by igrep at 2019-11-26T06:02:30Z
Distributions
Reverse Dependencies 1 direct, 1 indirect [details]
Executables wss-client-sample
Downloads 3129 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-11-26 [all 1 reports]

Readme for wss-client-0.3.0.0

[back to package description]

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