Skip to content

Commit

Permalink
chore: enable followRedirects for NodeWebSocket (#7555)
Browse files Browse the repository at this point in the history
  • Loading branch information
theomessin authored and jschfflr committed Sep 10, 2021
1 parent 9894b5b commit 204d596
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node/NodeWebSocketTransport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export class NodeWebSocketTransport implements ConnectionTransport {
static create(url: string): Promise<NodeWebSocketTransport> {
return new Promise((resolve, reject) => {
const ws = new NodeWebSocket(url, [], {
followRedirects: true,
perMessageDeflate: false,
maxPayload: 256 * 1024 * 1024, // 256Mb
});
Expand Down

0 comments on commit 204d596

Please sign in to comment.