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