@streamlayer/sdk-web-api 1.6.15 → 1.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/grpc/subscription.js +4 -0
- package/package.json +4 -4
package/lib/grpc/subscription.js
CHANGED
|
@@ -194,6 +194,10 @@ export class ServerStreamSubscription {
|
|
|
194
194
|
if (error instanceof ConnectError && error.code !== Code.Canceled) {
|
|
195
195
|
this.updateState(ServerStreamSubscriptionStatus.Failed);
|
|
196
196
|
this.state.setValue('error', error);
|
|
197
|
+
// reset attempt if error is Unknown and cause is missing trailer, usually caused by deadline exceeded
|
|
198
|
+
if (error.code === Code.Unknown && error.cause === 'missing trailer') {
|
|
199
|
+
this.attempt = 0;
|
|
200
|
+
}
|
|
197
201
|
this.reconnect();
|
|
198
202
|
return;
|
|
199
203
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/sdk-web-api",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@streamlayer/sdk-web-interfaces": "^1.4.
|
|
25
|
-
"@streamlayer/sdk-web-logger": "^1.0.
|
|
26
|
-
"@streamlayer/sdk-web-storage": "^1.0.
|
|
24
|
+
"@streamlayer/sdk-web-interfaces": "^1.4.4",
|
|
25
|
+
"@streamlayer/sdk-web-logger": "^1.0.38",
|
|
26
|
+
"@streamlayer/sdk-web-storage": "^1.0.38"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@bufbuild/protobuf": "^1.10.0",
|