OSDN Git Service

Hulk did something
[bytom/vapor.git] / vendor / github.com / gorilla / websocket / examples / echo / README.md
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 second
6 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
16 The server includes a simple web client. To use the client, open
17 http://127.0.0.1:8080 in the browser and follow the instructions on the page.