Skip to content

Commit

Permalink
feat: remove unexpected-response listener to support abortHandshake…
Browse files Browse the repository at this point in the history
… in ws (#816)
  • Loading branch information
AnWeber committed Oct 28, 2024
1 parent a66ac9f commit 5827f89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- support $env intellij environment variables access (#811)
- failed tests in reference skips request (AnWeber/vscode-httpyac#335)
- support `http_proxy` environment variable
- remove `unexpected-response` listener to support abortHandshake in ws (#816)

## [6.15.1] ( 2024-08-22)
### Features
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/websocket/websocketRequestClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class WebsocketRequestClient extends models.AbstractRequestClient<WebSock
});
});

const metaDataEvents = ['upgrade', 'unexpected-response', 'ping', 'pong', 'closing', 'close'];
const metaDataEvents = ['upgrade', 'ping', 'pong', 'closing', 'close'];
for (const event of metaDataEvents) {
if (utils.isString(event)) {
client.on(event, (message: IncomingMessage) => {
Expand Down

0 comments on commit 5827f89

Please sign in to comment.