@hackage wss-client0.2.0.0
A-little-higher-level WebSocket client.
Categories
License
Apache-2.0
Maintainer
yuji-yamamoto@iij.ad.jp
Links
Versions
Installation
Dependencies (6)
- base >=4.7 && <5
- bytestring
- http-client >=0.5.13
- http-client-tls
- network-uri
- websockets >=0.12.0 && <0.13 Show all…
Dependents (1)
@hackage/network-messagepack-rpc-websocket
Package Flags
build-sample
(off by default)
Build sample file.
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 modify the websockets package to do that).
- Add APIs to modify config of both http-client and websockets.
- Test with a mock server.
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