Gary Burd afffb15196 Merge branch 'varnames' 9 年之前
..
README.md 6eb6ad425a Improve chat example documentation 10 年之前
conn.go 24cddddcc0 Use single character receiver names in chat example 9 年之前
home.html 2301bcbf5c Cleanup js in chat example 9 年之前
hub.go 24cddddcc0 Use single character receiver names in chat example 9 年之前
main.go 24cddddcc0 Use single character receiver names in chat example 9 年之前

README.md

Chat Example

This application shows how to use use the websocket package and jQuery to implement a simple web chat application.

Running the example

The example requires a working Go development environment. The Getting Started page describes how to install the development environment.

Once you have Go up and running, you can download, build and run the example using the following commands.

$ go get github.com/gorilla/websocket
$ cd `go list -f '{{.Dir}}' github.com/gorilla/websocket/examples/chat`
$ go run *.go

To use the chat example, open http://localhost:8080/ in your browser.