From c68a3449be878e0b0cbc892436241dda8f7ea854 Mon Sep 17 00:00:00 2001 From: Nuno Vieira Date: Mon, 20 May 2024 17:46:01 +0100 Subject: [PATCH 1/2] Add name to generated users --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index c99c216..5005f8a 100644 --- a/index.js +++ b/index.js @@ -28,6 +28,7 @@ function sleep(ms) { async function clientLoop(i) { const user = { id: `${userIDPrefix}${i}`, + name: `${userIDPrefix}${i}` }; const client = new StreamChat(apiKey, { allowServerSideConnect: true }); const token = serverSideClient.createToken(user.id); From cab4d19f0368b084ac0d3e7d65b13cb78957ab4e Mon Sep 17 00:00:00 2001 From: Nuno Vieira Date: Mon, 20 May 2024 17:49:54 +0100 Subject: [PATCH 2/2] Update name in missing user object --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 5005f8a..29f8b38 100644 --- a/index.js +++ b/index.js @@ -62,6 +62,7 @@ async function clientLoop(i) { async function clientSetup(i) { const user = { id: `${userIDPrefix}${i}`, + name: `${userIDPrefix}${i}` }; const token = serverSideClient.createToken(user.id); const client = new StreamChat(apiKey, { allowServerSideConnect: true });