Skip to content
Branch: master
Find file History
claudia-jones and garyburd Simplify echo example client (#349)
Use existing `done` channel to signal that reader is done instead of closing the connection.
Latest commit 8fbc40b Feb 19, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information. Improve echo web UI Nov 2, 2015
client.go Simplify echo example client (#349) Feb 19, 2018
server.go Add missing html tag in example/echo Sep 26, 2017

Client and server example

This example shows a simple client and server.

The server echoes messages sent to it. The client sends a message every second and prints all messages received.

To run the example, start the server:

$ go run server.go

Next, start the client:

$ go run client.go

The server includes a simple web client. To use the client, open in the browser and follow the instructions on the page.

You can’t perform that action at this time.