Skip to content

Commit

Permalink
fix: WebSocket intercept regression (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Jan 31, 2024
1 parent 0e4ab21 commit 62a0824
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/http/ziti-websocket-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,8 @@ async function initAsClient(websocket, address, protocols, options) {

// Send request
let req = (websocket._req = get(req_options));

req.agent = await websocket._zitiContext.getZitiAgentPool().connect(req, req_options);

websocket._zitiContext.logger.info('WebSocket handshake request has been sent');

Expand Down

0 comments on commit 62a0824

Please sign in to comment.