MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / ServeWithEmail

Method ServeWithEmail

internal/ws/handler.go:47–49  ·  view source on GitHub ↗

ServeWithEmail handles the WebSocket upgrade for an explicitly-provided agent email, so non-mux routers (chi at /v1/agents/{address}/ws) can host the same transport.

(w http.ResponseWriter, r *http.Request, rawEmail string)

Source from the content-addressed store, hash-verified

45// agent email, so non-mux routers (chi at /v1/agents/{address}/ws) can host
46// the same transport.
47func (h *Handler) ServeWithEmail(w http.ResponseWriter, r *http.Request, rawEmail string) {
48 h.serve(w, r, rawEmail)
49}
50
51func (h *Handler) serve(w http.ResponseWriter, r *http.Request, rawEmail string) {
52 // Authenticate via the `Authorization: Bearer <api_key>` handshake header —

Callers

nothing calls this directly

Calls 1

serveMethod · 0.95

Tested by

no test coverage detected