{"modulePath":"github.com/ActiveState/cli","version":"v0.0.0-20261125184344-355e69c2df15","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package buildlogstream\n\n## Functions\n\n```go\nfunc Connect(ctx context.Context, jwt string) (*websocket.Conn, error)\n```\nConnect opens the build-log-streamer WebSocket. When jwt is non-empty it is offered via Sec-WebSocket-Protocol as \\`bearer.\\\u003cjwt\u003e\\` (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.\n\n```go\nfunc IsStreamDenied(err error) bool\n```\n\n## Types\n\n```go\ntype StreamDeniedError struct {\n\t*errs.WrapperError\n}\n```\nStreamDeniedError indicates the server refused the build-log stream.\n\n","path":"github.com/ActiveState/cli/pkg/platform/api/buildlogstream","name":"buildlogstream","synopsis":"","isRedistributable":true}
