This library wraps the water implementation with the intention to make a easy integration between listener/client services (such as http-proxy and flashlight) and water. It also provides a way to fetch and manage WASM files locally so the listener or dialer just can use the provided version available.
There are two programs available in this library: Dialer
and Listener
. The Dialer
is used to create connections to a listener and send data through a given protocol implementation. The Listener
is used for accepting connections from a client using the given WASM transport and in this case it only prints the connection message as an example. They can be executed with the following commands:
go run cmd/listener/main.go
And in another terminal (to send a "hello world" message to the listener):
go run cmd/dialer/main.go