778e75bef597249356ab2bcf058439a1f4617cec
1. Server: WebSocket ping/pong heartbeat (index.ts) Added a 30-second ping interval that pings all connected clients Connections without a pong response for 45 seconds are terminated and cleaned up Extracted removeDeadConnection() to deduplicate the cleanup logic between close events and dead connection reaping 2. Server: Fixed sendServerUsers filter bug (handler.ts:13) Removed && cu.displayName from the filter — users who joined a server before their identify message was processed were silently invisible to everyone. This was the direct cause of "can't see each other" in session 2. 3. Client: Typing message now includes serverId Added serverId: this.webrtc.currentServerId to the typing payload Added a currentServerId getter on WebRTCService
Toju / Zoracord
Desktop chat app with three parts:
src/Angular clientelectron/desktop shell, IPC, and local databaseserver/directory server, join request API, and websocket events
Install
- Run
npm install - Run
cd server && npm install - Copy
.env.exampleto.env
Config
Root .env:
SSL=trueuses HTTPS for Angular, the server, and Electron dev modePORT=3001changes the server port
If SSL=true, run ./generate-cert.sh once.
Server files:
server/data/variables.jsonholdsklipyApiKeyserver/data/variables.jsonalso holdsreleaseManifestUrlfor desktop auto updates
Main commands
npm run devstarts Angular, the server, and Electronnpm run electron:devstarts Angular and Electronnpm run server:devstarts only the servernpm run buildbuilds the Angular clientnpm run build:electronbuilds the Electron codenpm run build:allbuilds client, Electron, and servernpm run lintruns ESLintnpm run lint:fixformats templates, sorts template props, and fixes lint issuesnpm run testruns Angular tests
Server project
The code in server/ is a small Node and TypeScript service.
It handles the public server directory, join requests, websocket updates, and Klipy routes.
Inside server/:
npm run devstarts the server with reloadnpm run buildcompiles todist/npm run startruns the compiled server
Description
Releases
14
MetoYou 1.0.88
Latest
Languages
JavaScript
46.5%
TypeScript
42.8%
HTML
9.8%
SCSS
0.8%