We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2683779 commit 27fde9bCopy full SHA for 27fde9b
src/implementation/Client/GRPCClient/crypto.ts
@@ -160,13 +160,15 @@ export default class GRPCClientCrypto implements IClientCrypto {
160
161
// Add event listeners
162
duplexStream.on("data", (chunk: Buffer) => {
163
- if (chunk.length > 0) {
+ if (chunk?.length > 0) {
164
data = Buffer.concat([data, chunk]);
165
}
166
});
167
+
168
duplexStream.on("end", () => {
169
resolve(data);
170
171
172
duplexStream.on("error", (err: Error) => {
173
reject(err);
174
0 commit comments