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

Function dialWS

internal/ws/handler_test.go:94–97  ·  view source on GitHub ↗

dialWS connects to the versioned WS endpoint.

(t *testing.T, srv *httptest.Server, email, token string)

Source from the content-addressed store, hash-verified

92
93// dialWS connects to the versioned WS endpoint.
94func dialWS(t *testing.T, srv *httptest.Server, email, token string) (*websocket.Conn, *http.Response) {
95 t.Helper()
96 return dialWSPath(t, srv, fmt.Sprintf("/api/v1/agents/%s/ws", email), token)
97}
98
99// waitConnected polls the hub until the agent is registered or timeout.
100func waitConnected(t *testing.T, hub *Hub, agentID string) {

Calls 1

dialWSPathFunction · 0.85

Tested by

no test coverage detected