Skip to content

Commit 2b46b15

Browse files
authored
Merge pull request #2 from omnia-network/release/0.3.1
release/0.3.1
2 parents 85f985f + 2addcf7 commit 2b46b15

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@ on:
66
branches:
77
- main
88
pull_request:
9+
types:
10+
- opened
11+
- synchronize
12+
- reopened
13+
- ready_for_review
914

1015
jobs:
1116
tests:
17+
if: github.event.pull_request.draft == false
1218
runs-on: ubuntu-latest
1319
steps:
1420
- uses: actions/checkout@v4

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ic-websocket-js",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "IC WebSocket on the Internet Computer",
55
"license": "MIT",
66
"repository": {

src/ic-websocket.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import { WsAgent } from "./agent";
3939
* The default expiration time for receiving an ack message from the canister after sending a message.
4040
* It's **3/2 times** the canister's default send ack period.
4141
*/
42-
const DEFAULT_ACK_MESSAGE_TIMEOUT_MS = 90000;
42+
const DEFAULT_ACK_MESSAGE_TIMEOUT_MS = 450_000;
4343

4444
/**
4545
* Interface to create a new IcWebSocketConfig. For a simple configuration, use {@link createWsConfig}.
@@ -65,7 +65,7 @@ export interface IcWebSocketConfig<S extends _WS_CANISTER_SERVICE> {
6565
* The expiration (in milliseconds) time for receiving an ack message from the canister after sending a message.
6666
* If the ack message is not received within this time, the connection will be closed.
6767
* This parameter should always me **3/2 times or more** the canister's send ack period.
68-
* @default 90000 (90 seconds = 3/2 default send ack period on the canister)
68+
* @default 450_000 (7.5 minutes = 3/2 default send ack period on the canister)
6969
*/
7070
ackMessageTimeout?: number;
7171
/**

0 commit comments

Comments
 (0)