(hub *Hub, store HandlerStore)
| 31 | } |
| 32 | |
| 33 | func NewHandler(hub *Hub, store HandlerStore) *Handler { |
| 34 | return &Handler{hub: hub, store: store} |
| 35 | } |
| 36 | |
| 37 | // Handle is the HTTP handler for WebSocket upgrade requests. |
| 38 | // Route: GET /v1/agents/{email}/ws — authenticated by `Authorization: Bearer <api_key>`. |
no outgoing calls