change waitForMaybeReadyWebSocket to 5 seconds (#1017)

* change waitForMaybeReadyWebSocket to 5 seconds

* update package-lock.json
This commit is contained in:
Daniel Chew 2023-08-16 17:37:20 +08:00 committed by GitHub
parent b189937365
commit 110caed6be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

2
package-lock.json generated
View File

@ -57341,7 +57341,7 @@
},
"price_service/client/js": {
"name": "@pythnetwork/price-service-client",
"version": "1.6.1",
"version": "1.6.2",
"license": "Apache-2.0",
"dependencies": {
"@pythnetwork/price-service-sdk": "*",

View File

@ -1,6 +1,6 @@
{
"name": "@pythnetwork/price-service-client",
"version": "1.6.1",
"version": "1.6.2",
"description": "Pyth price service client",
"author": {
"name": "Pyth Data Association"

View File

@ -133,7 +133,7 @@ export class ResilientWebSocket {
this.wsClient !== undefined &&
this.wsClient.readyState !== this.wsClient.OPEN
) {
if (waitedTime > 1000) {
if (waitedTime > 5000) {
this.wsClient.close();
return;
} else {