Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Update debugBridge.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
hamitb committed Feb 27, 2020
1 parent f5c27b7 commit 6f81210
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/debugBridge.ts
Expand Up @@ -8,6 +8,9 @@ const CLOSING_CODES: {[key: string]: number} = {
TIMEOUT: 4000,
};

const RUNTIME = 'node';
const PROTOCOL_VERSION = '1.0';

const log = (...params: any[]) => {
if (LOGS_ENABLED === 'true') {
console.log(...params);
Expand All @@ -21,8 +24,9 @@ const brokerSocket = new WebSocket(
headers: {
'x-thundra-auth-token': AUTH_TOKEN,
'x-thundra-session-name': SESSION_NAME,
'x-thundra-protocol-version': '1.0',
'x-thundra-protocol-version': PROTOCOL_VERSION,
'x-thundra-session-timeout': SESSION_TIMEOUT,
'x-thundra-runtime': RUNTIME,
},
},
);
Expand Down

0 comments on commit 6f81210

Please sign in to comment.