From 8a4baca0b31c6cbc05310d84c0fb8cc50c73e701 Mon Sep 17 00:00:00 2001 From: talksik Date: Sat, 7 May 2022 18:51:24 -0500 Subject: [PATCH] 3 way chat working --- packages/desktop/package.json | 4 +- .../components/lines/lineRow.tsx/index.tsx | 2 + packages/desktop/src/pages/Login/index.tsx | 48 ++++++++++++------- 3 files changed, 34 insertions(+), 20 deletions(-) diff --git a/packages/desktop/package.json b/packages/desktop/package.json index 9d10a2a..2b86d43 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -55,8 +55,8 @@ [ "@electron-forge/plugin-webpack", { - "port": "4000", - "loggerPort": "9002", + "port": "4005", + "loggerPort": "9006", "mainConfig": "./webpack.main.config.js", "devContentSecurityPolicy": "connect-src 'self' http://localhost:5000 ws://localhost:5000 'unsafe-eval'", "renderer": { diff --git a/packages/desktop/src/components/lines/lineRow.tsx/index.tsx b/packages/desktop/src/components/lines/lineRow.tsx/index.tsx index 891fe28..9c94e8b 100644 --- a/packages/desktop/src/components/lines/lineRow.tsx/index.tsx +++ b/packages/desktop/src/components/lines/lineRow.tsx/index.tsx @@ -359,6 +359,8 @@ function StreamRoom({ useEffect(() => { console.log("keeping an eye on user peers map"); console.log(userPeers); + + // TODO: p1...when the peer map user count === tuned in - 1, then we tell parent to say that we are actually tuned in/connected }, [userPeers]); // todo, someone tell the main object that I am finally connected after everything...different than tuned in diff --git a/packages/desktop/src/pages/Login/index.tsx b/packages/desktop/src/pages/Login/index.tsx index 9884d46..b571d70 100644 --- a/packages/desktop/src/pages/Login/index.tsx +++ b/packages/desktop/src/pages/Login/index.tsx @@ -58,25 +58,37 @@ export default function Login() { {/* ! TESTING PURPOSES */} - +
+ - + + + +
{isLoading ? ( <>