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 6a67903 commit af9d0d8
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 @@ -49,7 +49,7 @@ async function main() {
},
on: {
proxyReqWs: (proxyReq) => {
console.log('WebSocket connection requestWS');
console.log('WebSocket connection request', req.url);
proxyReq.removeHeader('Origin');
},
proxyReq: (proxyReq, req) => {
Expand All @@ -59,7 +59,7 @@ async function main() {
console.log('WebSocket connection opened');
},
close: (res, socket, head) => {
console.log('WebSocket connection closed', res);
console.log('WebSocket connection closed');
},
error(err, req, res) {
console.log('WebSocket connection error', err);
Expand Down

0 comments on commit af9d0d8

Please sign in to comment.