change waitForMaybeReadyWebSocket to 5 seconds (#1017)
* change waitForMaybeReadyWebSocket to 5 seconds * update package-lock.json
This commit is contained in:
parent
b189937365
commit
110caed6be
|
@ -57341,7 +57341,7 @@
|
||||||
},
|
},
|
||||||
"price_service/client/js": {
|
"price_service/client/js": {
|
||||||
"name": "@pythnetwork/price-service-client",
|
"name": "@pythnetwork/price-service-client",
|
||||||
"version": "1.6.1",
|
"version": "1.6.2",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pythnetwork/price-service-sdk": "*",
|
"@pythnetwork/price-service-sdk": "*",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@pythnetwork/price-service-client",
|
"name": "@pythnetwork/price-service-client",
|
||||||
"version": "1.6.1",
|
"version": "1.6.2",
|
||||||
"description": "Pyth price service client",
|
"description": "Pyth price service client",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Pyth Data Association"
|
"name": "Pyth Data Association"
|
||||||
|
|
|
@ -133,7 +133,7 @@ export class ResilientWebSocket {
|
||||||
this.wsClient !== undefined &&
|
this.wsClient !== undefined &&
|
||||||
this.wsClient.readyState !== this.wsClient.OPEN
|
this.wsClient.readyState !== this.wsClient.OPEN
|
||||||
) {
|
) {
|
||||||
if (waitedTime > 1000) {
|
if (waitedTime > 5000) {
|
||||||
this.wsClient.close();
|
this.wsClient.close();
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue