mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 01:38:11 +00:00
hooked up websockets to stream output
This commit is contained in:
@@ -48,7 +48,7 @@ func CommitShow(w http.ResponseWriter, r *http.Request, u *User, repo *Repo) err
|
||||
|
||||
// generate a token to connect with the websocket
|
||||
// handler and stream output, if the build is running.
|
||||
data.Token = channel.Token(fmt.Sprintf(
|
||||
data.Token = channel.CreateStream(fmt.Sprintf(
|
||||
"%s/commit/%s/builds/%s", repo.Slug, commit.Hash, builds[0].Slug))
|
||||
|
||||
// render the repository template.
|
||||
|
Reference in New Issue
Block a user