We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22574d0 commit a243a27Copy full SHA for a243a27
sdk/src/accounts/grpcProgramAccountSubscriber.ts
@@ -54,10 +54,15 @@ export class grpcProgramAccountSubscriber<
54
},
55
resubOpts?: ResubOpts
56
): Promise<grpcProgramAccountSubscriber<U>> {
57
+ const channelOptions: GrpcConfigs['channelOptions'] = {
58
+ ...(grpcConfigs.channelOptions ?? {}),
59
+ grpcDefaultCompressionAlgorithm: 1, // always use zstd compression
60
+ grpcHttp2AdaptiveWindow: true, // enable adaptive window size management
61
+ };
62
const client = await createClient(
63
grpcConfigs.endpoint,
64
grpcConfigs.token,
- grpcConfigs.channelOptions ?? {}
65
+ channelOptions
66
);
67
const commitmentLevel =
68
// @ts-ignore :: isomorphic exported enum fails typescript but will work at runtime
0 commit comments