~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/github.com/gorilla/websocket/examples/echo/README.md

  • Committer: Nicholas Skaggs
  • Date: 2016-10-24 20:56:05 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161024205605-z8lta0uvuhtxwzwl
Initi with beta15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Client and server example
 
2
 
 
3
This example shows a simple client and server.
 
4
 
 
5
The server echoes messages sent to it. The client sends a message every five
 
6
seconds and prints all messages received.
 
7
 
 
8
To run the example, start the server:
 
9
 
 
10
    $ go run server.go
 
11
 
 
12
Next, start the client:
 
13
 
 
14
    $ go run client.go
 
15