This commit is contained in:
Ian Gulliver
2016-03-10 21:49:15 -08:00
parent 95a7a3c8c5
commit 633850b3be
3 changed files with 7 additions and 4 deletions

View File

@@ -5,3 +5,6 @@ adsb-ws: *.go
clean:
rm -f adsb-ws
fmt:
gofmt -w .

View File

@@ -2,9 +2,9 @@ package main
type hub struct {
connections map[*connection]bool
broadcast chan []byte
register chan *connection
unregister chan *connection
broadcast chan []byte
register chan *connection
unregister chan *connection
}
var h = hub{

View File

@@ -8,7 +8,7 @@ import (
)
type connection struct {
ws *websocket.Conn
ws *websocket.Conn
send chan []byte
}