diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d6e16d3..a2aab2b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,9 +6,15 @@ on: branches: - main pull_request: + types: + - opened + - synchronize + - reopened + - ready_for_review jobs: tests: + if: github.event.pull_request.draft == false runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/package-lock.json b/package-lock.json index e7fb5dc..894c104 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ic-websocket-js", - "version": "0.3.0", + "version": "0.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ic-websocket-js", - "version": "0.3.0", + "version": "0.3.1", "license": "MIT", "dependencies": { "loglevel": "^1.8.1" diff --git a/package.json b/package.json index b9c0646..f0266c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ic-websocket-js", - "version": "0.3.0", + "version": "0.3.1", "description": "IC WebSocket on the Internet Computer", "license": "MIT", "repository": { diff --git a/src/ic-websocket.ts b/src/ic-websocket.ts index f3c1191..e48d966 100644 --- a/src/ic-websocket.ts +++ b/src/ic-websocket.ts @@ -39,7 +39,7 @@ import { WsAgent } from "./agent"; * The default expiration time for receiving an ack message from the canister after sending a message. * It's **3/2 times** the canister's default send ack period. */ -const DEFAULT_ACK_MESSAGE_TIMEOUT_MS = 90000; +const DEFAULT_ACK_MESSAGE_TIMEOUT_MS = 450_000; /** * Interface to create a new IcWebSocketConfig. For a simple configuration, use {@link createWsConfig}. @@ -65,7 +65,7 @@ export interface IcWebSocketConfig { * The expiration (in milliseconds) time for receiving an ack message from the canister after sending a message. * If the ack message is not received within this time, the connection will be closed. * This parameter should always me **3/2 times or more** the canister's send ack period. - * @default 90000 (90 seconds = 3/2 default send ack period on the canister) + * @default 450_000 (7.5 minutes = 3/2 default send ack period on the canister) */ ackMessageTimeout?: number; /**