feat(grafana_live): more work pushing data to websocket, #4355

This commit is contained in:
Torkel Ödegaard
2016-03-14 22:26:43 +01:00
parent 92f20b9b7d
commit 2e1f26096f
5 changed files with 64 additions and 9 deletions
+3
View File
@@ -81,7 +81,10 @@ func (c *connection) handleMessage(message []byte) {
switch msgType {
case "subscribe":
h.subChannel <- &streamSubscription{name: streamName, conn: c}
case "unsubscribe":
h.subChannel <- &streamSubscription{name: streamName, conn: c, remove: true}
}
}
func (c *connection) write(mt int, payload []byte) error {