WebChannel chat demo application

Andy Hochhaus a7222ab1e9 Fixes for upstream API changes 1 year ago
gen a7222ab1e9 Fixes for upstream API changes 1 year ago
.gitignore a2c859b9b0 Port demo chat app from libevent-browserchannel-server. 3 years ago
LICENSE a7e18b5d60 Initial commit 3 years ago
Makefile a7222ab1e9 Fixes for upstream API changes 1 year ago
README.md 8084a40184 Improve README. 3 years ago
cleardot.gif 0109ede13c Fix server to work with {,un}compiled JS. 3 years ago
deps.sh e137a152bb Make JS compile and lint. 3 years ago
uncompiled_defines.js 63ee1b1613 USE_NATIVE_JSON to avoid CSP errors. 3 years ago
uncompiled_deps.js a7222ab1e9 Fixes for upstream API changes 1 year ago
wcchat.css e137a152bb Make JS compile and lint. 3 years ago
wcchat.go a7222ab1e9 Fixes for upstream API changes 1 year ago
wcchat.htm 63ee1b1613 USE_NATIVE_JSON to avoid CSP errors. 3 years ago
wcchat.js a7222ab1e9 Fixes for upstream API changes 1 year ago

README.md

wcchat

WebChannel chat demo application

To run in compiled mode:

$ # setup environment (GOPATH, etc)
$ go get github.com/samegoal/wcchat
$ cd src/github.com/samegoal/wcchat
$ go run wcchat.go
$ # server at http://localhost:8080/

To run in developer mode:

$ # setup environment (GOPATH, etc)
$ go get github.com/samegoal/wcchat
$ cd src/github.com/samegoal/wcchat
$ ./deps.sh  # install deps (one time only)
$ # modify the source
$ make  # compile JavaScript
$ make lint  # prior to sending Pull Request

$ # launch server (serving uncompiled JavaScript)
$ go run wcchat.go --deps=/tmp/deps

$ # launch server (serving compiled JavaScript)
$ go run wcchat.go