// +build no_ws package main import "errors" import "net/http" var ws_hub WS_Hub var ws_nouser error = errors.New("This user isn't connected via WebSockets") type WS_Hub struct { } func (_ *WS_Hub) guest_count() int { return 0 } func (_ *WS_Hub) user_count() int { return 0 } func (hub *WS_Hub) broadcast_message(_ string) error { return nil } func (hub *WS_Hub) push_message(_ int, _ string) error { return ws_nouser } func(hub *WS_Hub) push_alert(_ int, _ int, _ string, _ string, _ int, _ int, _ int) error { return ws_nouser } func(hub *WS_Hub) push_alerts(_ []int, _ int, _ string, _ string, _ int, _ int, _ int) error { return ws_nouser } func route_websockets(_ http.ResponseWriter, _ *http.Request, _ User) { }