Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
Connect opens the build-log-streamer WebSocket. When jwt is non-empty it is offered via Sec-WebSocket-Protocol as `bearer.<jwt>` (alongside wsSubprotocol, which the server echoes back) so the server can authorize the stream. The browser WebSocket API can't set custom request headers, so the dashboard carries the JWT the same way; using the subprotocol here keeps the State Tool and dashboard clients symmetric.
func IsStreamDenied ¶
Types ¶
type StreamDeniedError ¶
type StreamDeniedError struct {
*errs.WrapperError
}
StreamDeniedError indicates the server refused the build-log stream.
Click to show internal directories.
Click to hide internal directories.