mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-29 03:57:09 +00:00
fix: harden room teardown and popup containment
This commit is contained in:
+9
-1
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
export const PROTOCOL_VERSION = "1.0.0";
|
||||
export const APP_VERSION = "3.1.4";
|
||||
export const APP_VERSION = "3.1.5";
|
||||
|
||||
export const OFFICIAL_SERVER_URL = 'wss://syncserver.koalastuff.net';
|
||||
export const OFFICIAL_LANDING_PAGE_URL = 'https://sync.koalastuff.net';
|
||||
@@ -65,6 +65,14 @@ export const EVENTS = {
|
||||
PONG: "pong" // server responds with same { t } for client RTT calculation
|
||||
};
|
||||
|
||||
// Stable server error identifiers. Clients must branch on these codes instead
|
||||
// of localized or user-facing message text whenever the error changes session
|
||||
// state.
|
||||
export const ERROR_CODES = {
|
||||
ROOM_CLOSED: 'room_closed',
|
||||
PEER_TIMED_OUT: 'peer_timed_out'
|
||||
};
|
||||
|
||||
// Room control modes (Host Control Mode feature).
|
||||
// NOTE: content.js does not import this module — it uses the string literals
|
||||
// 'everyone' / 'host-only' directly. Keep these values in sync there.
|
||||
|
||||
Reference in New Issue
Block a user