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

Function wsDialOpts

tests/contract/contract_test.go:448–450  ·  view source on GitHub ↗

wsDialOpts authenticates the WS handshake with Authorization: Bearer (the credential is never in the URL — header-only auth).

(apiKey string)

Source from the content-addressed store, hash-verified

446// wsDialOpts authenticates the WS handshake with Authorization: Bearer (the
447// credential is never in the URL — header-only auth).
448func wsDialOpts(apiKey string) *websocket.DialOptions {
449 return &websocket.DialOptions{HTTPHeader: http.Header{"Authorization": {"Bearer " + apiKey}}}
450}
451
452func (r *runner) execWSReconnect(t *testing.T, s *step) {
453 t.Helper()

Callers 2

execWSConnectMethod · 0.85
execWSReconnectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected