Fixing bug with Live Reload where it broadcast instead of sending the handshake

This commit is contained in:
spf13 2014-05-27 18:35:12 -04:00
parent 57ad3abe7b
commit 79dd1d02b4

View file

@ -35,7 +35,7 @@ func (c *connection) reader() {
}
switch true {
case bytes.Contains(message, []byte(`"command":"hello"`)):
wsHub.broadcast <- []byte(`{
c.send <- []byte(`{
"command": "hello",
"protocols": [ "http://livereload.com/protocols/official-7" ],
"serverName": "Hugo"