2017-05-11 13:04:43 +00:00
|
|
|
// +build no_ws
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
2017-06-10 07:58:15 +00:00
|
|
|
import "errors"
|
2017-05-11 13:04:43 +00:00
|
|
|
import "net/http"
|
|
|
|
|
|
|
|
var ws_hub WS_Hub
|
2017-06-10 07:58:15 +00:00
|
|
|
var ws_nouser error = errors.New("This user isn't connected via WebSockets")
|
2017-05-11 13:04:43 +00:00
|
|
|
|
|
|
|
type WS_Hub struct
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-06-10 07:58:15 +00:00
|
|
|
func (_ *WS_Hub) guest_count() int {
|
2017-05-11 13:04:43 +00:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2017-06-10 07:58:15 +00:00
|
|
|
func (_ *WS_Hub) user_count() int {
|
2017-05-11 13:04:43 +00:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2017-06-10 07:58:15 +00:00
|
|
|
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, _ string, _ string, _ int, _ int, _ int) error {
|
|
|
|
return ws_nouser
|
|
|
|
}
|
|
|
|
|
2017-06-12 09:03:14 +00:00
|
|
|
func(hub *WS_Hub) push_alerts(_ []int, _ string, _ string, _ int, _ int, _ int) error {
|
|
|
|
return ws_nouser
|
|
|
|
}
|
|
|
|
|
2017-05-11 13:04:43 +00:00
|
|
|
func route_websockets(_ http.ResponseWriter, _ *http.Request) {
|
|
|
|
}
|