Skip to content

Commit

Permalink
fix: introduce ZitiDummyWebSocketWrapper (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Feb 5, 2024
1 parent cccf604 commit 6978e5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/http/ziti-socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ class ZitiSocket extends EventEmitter {
*
*/
async destroy() {
debugger;
this._writable = false;
await this.zitiContext.close(this.zitiConnection);
}
Expand All @@ -302,7 +301,6 @@ class ZitiSocket extends EventEmitter {
*
*/
async end(data, encoding, callback) {
debugger;
this._writable = false;
await this.zitiContext.close(this.zitiConnection);
}
Expand Down
4 changes: 2 additions & 2 deletions src/http/ziti-websocket-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ async function initAsClient(websocket, address, protocols, options) {

opts.createConnection = zitiConnect; // We're going over Ziti

newUrl.protocol = websocket._zitiConfig.browzer.bootstrapper.target.scheme + ":";
opts.href = newUrl.protocol + '//' + opts.configHostAndPort.host.toLowerCase() + newUrl.pathname + newUrl.search;
parsedUrl.protocol = websocket._zitiConfig.browzer.bootstrapper.target.scheme + ":";
opts.href = parsedUrl.protocol + '//' + opts.configHostAndPort.host.toLowerCase() + parsedUrl.pathname + parsedUrl.search;
opts.origin = websocket._zitiConfig.browzer.bootstrapper.target.scheme + "://" + opts.configHostAndPort.host.toLowerCase() + ":" + opts.configHostAndPort.port;
opts.host = opts.serviceName;

Expand Down

0 comments on commit 6978e5a

Please sign in to comment.