This is a proof of concept project implementing simple chat over websockets in Go. The project is heavily inspired by Gary Burd.
Copy the public/ directory to your web server's document root or create a symlink.
git clone https://github.com/rlaffers/golang-websocket.git
cp -R golang-websocket.git/public /var/www/go-chat
# or create a symlink
ln -s golang-websocket.git/public /var/www/go-chatStart the websocket server:
bin/backendNavigate to http://localhost/go-chat in your browser and have fun.
To recompile the websocket server, following requirements must be met:
- Go 1.2
- Websocket library from Gorilla Toolkit
go get github.com/gorilla/websocket