SendStatusUpdate sends a JSON status map to any connected WebSocket clients.
(status json.RawMessage)
| 136 | |
| 137 | // SendStatusUpdate sends a JSON status map to any connected WebSocket clients. |
| 138 | func (h *Handler) SendStatusUpdate(status json.RawMessage) { |
| 139 | h.wsHub.statusUpdate <- status |
| 140 | } |
| 141 | |
| 142 | func newHandlerFromConfig(ld blobserver.Loader, conf jsonconfig.Obj) (http.Handler, error) { |
| 143 | indexPrefix := conf.RequiredString("index") // TODO: add optional help tips here? |