...

Text file src/github.com/gorilla/websocket/examples/echo/README.md

Documentation: github.com/gorilla/websocket/examples/echo

     1# Client and server example
     2
     3This example shows a simple client and server.
     4
     5The server echoes messages sent to it. The client sends a message every second
     6and prints all messages received.
     7
     8To run the example, start the server:
     9
    10    $ go run server.go
    11
    12Next, start the client:
    13
    14    $ go run client.go
    15
    16The server includes a simple web client. To use the client, open
    17http://127.0.0.1:8080 in the browser and follow the instructions on the page.

View as plain text