Start

Two pages. The first gets a websocketd binary onto your PATH. The second is a single lesson: you write a five-line shell script, wrap it, and end up with a web page in your own browser receiving what that script prints.

You need three things before starting:

  • A terminal.
  • A text editor.
  • A web browser on the same machine.

You do not need to know anything about the WebSocket protocol, and you do not need Go unless you choose to build from source.

Budget about fifteen minutes, most of it typing.

  • Install — Download the websocketd binary for your platform, or build it from source with go build.
  • Tutorial — Wrap a shell script with websocketd, drive it from the built-in dev console, then serve your own web page that talks to it.