Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update site/src/xServices/workspaceBuild/workspaceBuildXService.ts
Co-authored-by: Abhineet Jain <AbhineetJain@users.noreply.github.com>
  • Loading branch information
kylecarbs and AbhineetJain authored Jun 22, 2022
commit 700b59129ea7ecd8036c33d6ee0bd9c3e02f2fcc
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ export const workspaceBuildMachine = createMachine(
return new Promise<void>((resolve, reject) => {
const proto = location.protocol === "https:" ? "wss:" : "ws:"
const socket = new WebSocket(
`${proto}//${location.host}/api/v2/workspacebuilds/${ctx.buildId}/logs?follow=true&after=` +
ctx.timeCursor.getTime(),
`${proto}//${location.host}/api/v2/workspacebuilds/${ctx.buildId}/logs?follow=true&after=${ctx.timeCursor.getTime()}`,
)
socket.binaryType = "blob"
socket.addEventListener("message", (event) => {
Expand Down