This program exposes a WebSocket interface to provide some data, such as live boat information, made available by a corresponding instance of sailnavsim-core (as seen here: https://8bitbyte.ca/sailnavsim/).
- Standard Golang build tools
- gorilla/websocket module
- GNU/Linux (various distros), x86-64
go get
go build
go test
./sailnavsim-snsw <listen_host>:<listen_port> <connect_host>:<connect_port>
The above command will run the WebSocket Connector program, exposing its WebSocket interface on <listen_host> port <listen_port>, and connecting to the running sailnavsim-core simulator program at <connect_host> port <connect_port>. While running, the WebSocket endpoint will be available at http://<listen_host>:<listen_port>/v1/ws.