We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f613394 commit 0657e94Copy full SHA for 0657e94
client/output.go
@@ -23,8 +23,12 @@ type OutputReader interface {
23
// GetOutput reads the build output log for the provided buildID - streaming to
24
// OutputReader. The context controls the lifetime of the request.
25
func (c *Client) GetOutput(ctx context.Context, buildID string, or OutputReader) error {
26
+ wsScheme := "ws"
27
+ if c.BaseURL.Scheme == "https" {
28
+ wsScheme = "wss"
29
+ }
30
u := c.BaseURL.ResolveReference(&url.URL{
- Scheme: "ws",
31
+ Scheme: wsScheme,
32
Host: c.BaseURL.Host,
33
Path: "/v1/build-ws/" + buildID,
34
RawQuery: "",
0 commit comments