projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57ad3ab
)
Fixing bug with Live Reload where it broadcast instead of sending the handshake
author
spf13
<steve.francia@gmail.com>
Tue, 27 May 2014 22:35:12 +0000
(18:35 -0400)
committer
spf13
<steve.francia@gmail.com>
Tue, 27 May 2014 22:35:12 +0000
(18:35 -0400)
livereload/connection.go
patch
|
blob
|
history
diff --git
a/livereload/connection.go
b/livereload/connection.go
index 70a7e6d5dc93d6e112893c654d2cf671400cd574..c35a403eebf58334ec7e57941777511f6aca1f8a 100644
(file)
--- 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()