31 Commits

Author SHA1 Message Date
Myx
84fa45985a feat: Add chat embeds v1
Youtube and Website metadata embeds
2026-04-04 04:47:04 +02:00
Myx
de2d3300d4 fix: Fix users unable to see or hear each other in voice channels due to
stale server sockets, passive non-initiators, and race conditions
during peer connection setup.

Fix users unable to see or hear each other in voice channels due to
stale server sockets, passive non-initiators, and race conditions
during peer connection setup.

Server:
- Close stale WebSocket connections sharing the same oderId in
  handleIdentify instead of letting them linger up to 45s
- Make user_joined/user_left broadcasts identity-aware so duplicate
  sockets don't produce phantom join/leave events
- Include serverIds in user_left payload for multi-room presence
- Simplify findUserByOderId now that stale sockets are cleaned up

Client - signaling:
- Add fallback offer system with 1s timer for missed user_joined races
- Add non-initiator takeover after 5s when the initiator fails to send
  an offer (NON_INITIATOR_GIVE_UP_MS)
- Scope peerServerMap per signaling URL to prevent cross-server
  collisions
- Add socket identity guards on all signaling event handlers
- Replace canReusePeerConnection with hasActivePeerConnection and
  isPeerConnectionNegotiating with extended grace periods

Client - peer connections:
- Extract replaceUnusablePeer helper to deduplicate stale peer
  replacement in offer and ICE handlers
- Add stale connectionstatechange guard to ignore events from replaced
  RTCPeerConnection instances
- Use deterministic initiator election in peer recovery reconnects
- Track createdAt on PeerData for staleness detection

Client - presence:
- Add multi-room presence tracking via presenceServerIds on User
- Replace clearUsers + individual userJoined with syncServerPresence
  for atomic server roster updates
- Make userLeft handle partial server removal instead of full eviction

Documentation:
- Add server-side connection hygiene, non-initiator takeover, and stale
  peer replacement sections to the realtime README
2026-04-04 02:47:58 +02:00
Myx
37cac95b38 Add access control rework 2026-04-02 03:18:37 +02:00
Myx
314a26325f Database changes to make it better practise 2026-04-02 01:32:08 +02:00
Myx
bbb6deb0a2 feat: Theme engine
big changes
2026-04-02 00:08:38 +02:00
Myx
727059fb52 Add seperation of voice channels, creation of new ones, and move around users 2026-03-30 02:11:39 +02:00
Myx
83694570e3 feat: Allow admin to create new text channels 2026-03-30 01:25:56 +02:00
Myx
fe9c1dd1c0 ddd test 2026-03-20 03:05:29 +01:00
Myx
8f960be1e9 Resync username instead of using Anonymous 2026-03-19 03:57:51 +01:00
Myx
1cdd1c5d2b fix typing indicator on wrong server
Some checks failed
Queue Release Build / build-linux (push) Blocked by required conditions
Queue Release Build / prepare (push) Successful in 15s
Deploy Web Apps / deploy (push) Successful in 16m15s
Queue Release Build / finalize (push) Has been cancelled
Queue Release Build / build-windows (push) Has been cancelled
2026-03-18 22:10:11 +01:00
Myx
141de64767 Reconnection when signal server is not active and minor changes 2026-03-18 20:45:31 +01:00
Myx
eb987ac672 Private servers with password and invite links (Experimental) 2026-03-18 20:42:40 +01:00
Myx
f8fd78d21a Add server variables
All checks were successful
Queue Release Build / prepare (push) Successful in 21s
Deploy Web Apps / deploy (push) Successful in 15m14s
Queue Release Build / build-linux (push) Successful in 22m12s
Queue Release Build / build-windows (push) Successful in 23m20s
Queue Release Build / finalize (push) Successful in 2m12s
2026-03-15 16:12:21 +01:00
Myx
778e75bef5 fix: [Experimental hotfix 1] Fix Signaling issues Toju App
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
2026-03-12 23:53:10 +01:00
Myx
bb087cd2d8 Reset to parent
All checks were successful
Queue Release Build / prepare (push) Successful in 19s
Queue Release Build / build-windows (push) Successful in 24m35s
Queue Release Build / build-linux (push) Successful in 39m23s
Queue Release Build / finalize (push) Successful in 4m9s
2026-03-11 02:22:42 +01:00
Myx
f5bf18b739 Add runner ci (test) 2026-03-10 23:56:53 +01:00
Myx
c3fbd7d4fe Add auto updater 2026-03-10 23:38:57 +01:00
Myx
dc6746c882 Disallow any types 2026-03-09 23:02:52 +01:00
Myx
d20509566d Change klippy window behavour, Fix user management behavour, clean up search server page 2026-03-08 00:00:17 +01:00
Myx
0fd7d8ce27 Readme update 2026-03-06 05:30:19 +01:00
Myx
10467dfccb Cleaning up comments 2026-03-06 05:21:41 +01:00
Myx
fe2347b54e Imrpove chat with gifs, videos, music player, redesigns and improved filesharing errors 2026-03-06 04:47:07 +01:00
Myx
2d84fbd91a Fix bugs and clean noise reduction 2026-03-06 02:22:43 +01:00
Myx
0ed9ca93d3 Refactor 4 with bugfixes 2026-03-04 03:56:23 +01:00
Myx
be91b6dfe8 Refacor electron app and add migrations 2026-03-04 01:38:43 +01:00
Myx
4e95ae77c5 Now formatted correctly with eslint 2026-03-04 00:41:02 +01:00
Myx
ad0e28bf84 Add eslint 2026-03-03 22:56:12 +01:00
Myx
6d7465ff18 Big commit 2026-03-02 00:13:34 +01:00
Myx
d146138fca Multi server connection 2026-03-01 15:26:08 +01:00
Myx
8c551a90f4 Remote connection 2026-01-09 19:49:38 +01:00
Myx
87c722b5ae init 2025-12-28 08:23:30 +01:00