Permalink
Browse files

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

… handshake
  • Loading branch information...
1 parent 57ad3ab commit 79dd1d02b49bc7a296e2eb607c29192709eeab06 @spf13 spf13 committed May 27, 2014
Showing with 5 additions and 5 deletions.
  1. +5 −5 livereload/connection.go
View
@@ -35,11 +35,11 @@ func (c *connection) reader() {
}
switch true {
case bytes.Contains(message, []byte(`"command":"hello"`)):
- wsHub.broadcast <- []byte(`{
- "command": "hello",
- "protocols": [ "http://livereload.com/protocols/official-7" ],
- "serverName": "Hugo"
- }`)
+ c.send <- []byte(`{
+ "command": "hello",
+ "protocols": [ "http://livereload.com/protocols/official-7" ],
+ "serverName": "Hugo"
+ }`)
}
}
c.ws.Close()

0 comments on commit 79dd1d0

Please sign in to comment.