Skip to content

Commit

Permalink
Added logging to the WebSocket proxy in the API application
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor committed Jun 7, 2024
1 parent 147051f commit e37ab06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function main() {
target: config.csprCloudStreamingUrl,
ws: true,
changeOrigin: true,
logLevel: 'debug',
logger: console,
headers: {
authorization: config.csprCloudAccessKey,
},
Expand All @@ -52,7 +52,7 @@ async function main() {
console.log('WebSocket connection requestWS', res);
proxyReq.removeHeader('Origin');
},
proxyReq: (proxyReq, req, res) => {
proxyReq: (proxyReq, req) => {
console.log('WebSocket connection request', req.url)
},
open: (proxySocket) => {
Expand Down

0 comments on commit e37ab06

Please sign in to comment.