~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/github.com/gorilla/websocket/examples/chat/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
# Chat Example
 
2
 
 
3
This application shows how to use use the
 
4
[websocket](https://github.com/gorilla/websocket) package and
 
5
[jQuery](http://jquery.com) to implement a simple web chat application.
 
6
 
 
7
## Running the example
 
8
 
 
9
The example requires a working Go development environment. The [Getting
 
10
Started](http://golang.org/doc/install) page describes how to install the
 
11
development environment.
 
12
 
 
13
Once you have Go up and running, you can download, build and run the example
 
14
using the following commands.
 
15
 
 
16
    $ go get github.com/gorilla/websocket
 
17
    $ cd `go list -f '{{.Dir}}' github.com/gorilla/websocket/examples/chat`
 
18
    $ go run *.go
 
19
 
 
20
To use the chat example, open http://localhost:8080/ in your browser.