Skip to content

Commit c0bdbbe

Browse files
authored
test-client: set websocket keepalives (#323)
1 parent c44e5bb commit c0bdbbe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test-client/src/load-testing/rsocket-worker.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ const client = new RSocketConnector({
2121
setup: {
2222
dataMimeType: 'application/bson',
2323
metadataMimeType: 'application/bson',
24+
keepAlive: 15_000,
25+
lifetime: 120_000,
2426
payload: {
2527
data: null,
2628
metadata: Buffer.from(
@@ -51,7 +53,7 @@ const stream = rsocket.requestStream(
5153
SYNC_QUEUE_REQUEST_N, // The initial N amount
5254
{
5355
onError: (e) => {
54-
console.error(e);
56+
console.error(new Date().toISOString(), i, e);
5557
},
5658
onNext: (payload) => {
5759
const { data } = payload;

test-client/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"sourceMap": true
99
},
1010
"include": ["src"],
11-
"references": []
11+
"references": [{ "path": "../packages/service-core" }]
1212
}

0 commit comments

Comments
 (0)