websocket/examples/filewatch/README.md

10 lines
374 B
Markdown
Raw Permalink Normal View History

2014-03-20 23:25:30 +04:00
# File Watch example.
2014-03-21 00:26:28 +04:00
This example sends a file to the browser client for display whenever the file is modified.
2014-03-20 23:25:30 +04:00
$ go get github.com/gorilla/websocket
2014-03-21 00:26:28 +04:00
$ cd `go list -f '{{.Dir}}' github.com/gorilla/websocket/examples/filewatch`
$ go run main.go <name of file to watch>
# Open http://localhost:8080/ .
# Modify the file to see it update in the browser.