diff options
author | spf13 <[email protected]> | 2014-05-27 18:35:12 -0400 |
---|---|---|
committer | spf13 <[email protected]> | 2014-05-27 18:35:12 -0400 |
commit | 79dd1d02b49bc7a296e2eb607c29192709eeab06 (patch) | |
tree | 3785530eeae85432887447729f2b5fab47bfa742 /livereload | |
parent | 57ad3abe7bcbe958450a66f6f487c05f8222cf33 (diff) | |
download | hugo-79dd1d02b49bc7a296e2eb607c29192709eeab06.tar.gz hugo-79dd1d02b49bc7a296e2eb607c29192709eeab06.zip |
Fixing bug with Live Reload where it broadcast instead of sending the handshake
Diffstat (limited to 'livereload')
-rw-r--r-- | livereload/connection.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/livereload/connection.go b/livereload/connection.go index 70a7e6d5d..c35a403ee 100644 --- a/livereload/connection.go +++ b/livereload/connection.go @@ -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() |