Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
node-version: "22.14.0"
cache: "npm"
registry-url: "https://registry.npmjs.org"

Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
node-version: "22.14.0"
registry-url: "https://registry.npmjs.org"

- name: Download build artifacts
Expand Down Expand Up @@ -267,7 +267,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
node-version: "22.14.0"
cache: "npm"

- name: Download build artifacts
Expand Down
2 changes: 1 addition & 1 deletion packages/dashboard-server/src/proxy-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ export function createServer(options: DashboardServerOptions = {}): DashboardSer
if (mode === 'mock') {
handleMockWebSocket(ws, verbose);
} else if (mode === 'proxy' && relayUrl) {
handleHybridWebSocket(ws, getRelaycastSnapshot, relayUrl, verbose);
handleHybridWebSocket(ws, getRelaycastSnapshot, relayUrl, verbose, brokerApiKey);
} else {
handleStandaloneWebSocket(ws, getRelaycastSnapshot, verbose);
}
Expand Down
3 changes: 2 additions & 1 deletion packages/dashboard-server/src/websocket/standalone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export function handleHybridWebSocket(
getSnapshot: () => Promise<DashboardSnapshot>,
relayUrl: string,
verbose: boolean,
brokerApiKey?: string,
): void {
if (verbose) {
console.log('[dashboard] Hybrid WebSocket client connected');
Expand Down Expand Up @@ -141,7 +142,7 @@ export function handleHybridWebSocket(
console.log(`[dashboard] Connecting to broker WS: ${brokerWsUrl}`);
}

const bws = new WebSocket(brokerWsUrl);
const bws = new WebSocket(brokerWsUrl, brokerApiKey ? { headers: { 'x-api-key': brokerApiKey } } : undefined);
brokerWs = bws;

bws.on('open', () => {
Expand Down
Loading