8000 feat: add support for coder inbox by DanielleMaywood · Pull Request #444 · coder/vscode-coder · GitHub
[go: up one dir, main page]

Skip to content

feat: add support for coder inbox #444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Mar 21, 2025
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
chore: socketUrlRaw -> socketUrl
  • Loading branch information
DanielleMaywood committed Mar 20, 2025
commit 57acbffa209b4ff001718ee6dc72451764858d5f
4 changes: 2 additions & 2 deletions src/inbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ export class Inbox implements vscode.Disposable {

const baseUrl = new URL(baseUrlRaw)
const socketProto = baseUrl.protocol === "https:" ? "wss:" : "ws:"
const socketUrlRaw = `${socketProto}//${baseUrl.host}/api/v2/notifications/inbox/watch?templates=${watchTemplatesParam}&targets=${watchTargetsParam}`
const socketUrl = `${socketProto}//${baseUrl.host}/api/v2/notifications/inbox/watch?templates=${watchTemplatesParam}&targets=${watchTargetsParam}`

const coderSessionTokenHeader = "Coder-Session-Token"
this.socket = new WebSocket(new URL(socketUrlRaw), {
this.socket = new WebSocket(new URL(socketUrl), {
followRedirects: true,
agent: httpAgent,
headers: {
Expand Down
0