~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/github.com/gorilla/websocket/examples/filewatch/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
# File Watch example.
 
2
 
 
3
This example sends a file to the browser client for display whenever the file is modified.
 
4
 
 
5
    $ go get github.com/gorilla/websocket
 
6
    $ cd `go list -f '{{.Dir}}' github.com/gorilla/websocket/examples/filewatch`
 
7
    $ go run main.go <name of file to watch>
 
8
    # Open http://localhost:8080/ .
 
9
    # Modify the file to see it update in the browser.