Skip to content

Commit 8fbcb58

Browse files
authored
Add keepAlive to the websocket client options (#6)
* fix: add keepAlive pings to the websocket client * chore: 0.6.3
1 parent 0b7d73e commit 8fbcb58

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codex-data/sdk",
3-
"version": "0.6.2",
3+
"version": "0.6.3",
44
"engines": {
55
"node": ">=17.5.0"
66
},

src/sdk/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export class Codex {
4242
});
4343
this.wsClient = createClient({
4444
webSocketImpl: WebSocket,
45+
keepAlive: 10_000,
4546
url: this.apiRealtimeUrl,
4647
connectionParams: {
4748
Authorization: this.apiKey,

0 commit comments

Comments
 (0)