mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Tag file transfer errors with channel + path; feature-gate new gateway messages
Connector transfer errors stay type "error" (old clients unchanged) but now carry cid/path, so the transfer window marks the right transfer as failed. setWhisperPolicy/setTransferLimit are only sent to gateways that announce whisperPolicy/transferLimit, so older gateways don't log "Unknown message type". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
d0fc97d921
commit
bc2d1f65a0
4 files changed
+52
-26
No files matched your search
@@ -122,7 +122,7 @@ const WEB_DIST = process.env.WEB_DIST ?? path.resolve(__dirname, "../../web/dist
|
||||
const SERVE_STATIC = process.env.WEB_STATIC !== "0";
|
||||
|
||||
// Sent to every browser in the "hello" message on socket open; see there.
|
||||
const GATEWAY_FEATURES = ["clientVolume", "keepalive", "chunkedUpload"];
|
||||
const GATEWAY_FEATURES = ["clientVolume", "keepalive", "chunkedUpload", "whisperPolicy", "transferLimit"];
|
||||
|
||||
// Optional TURN relay for screen streams, also handed out in "hello". With
|
||||
// TURN_SECRET (coturn's use-auth-secret) every socket gets its own credential,
|
||||
|
||||
@@ -157,7 +157,7 @@ export type Ts3ConnectionEvent =
|
||||
| { type: "disconnected"; reason: string }
|
||||
| { type: "reconnecting"; reason: string }
|
||||
| { type: "reconnected" }
|
||||
| { type: "error"; message: string }
|
||||
| { type: "error"; message: string; cid?: number; path?: string }
|
||||
| { type: "channelPasswordRequired"; channelId: number }
|
||||
| ({ type: "serverLog" } & ServerLogEntry)
|
||||
| {
|
||||
@@ -368,7 +368,7 @@ export class Ts3Connection {
|
||||
| { type: "disconnected"; reason: string }
|
||||
| { type: "reconnecting"; reason: string }
|
||||
| { type: "reconnected" }
|
||||
| { type: "error"; message: string }
|
||||
| { type: "error"; message: string; cid?: number; path?: string }
|
||||
| { type: "channelPasswordRequired"; channel_id: number }
|
||||
| ({ type: "serverLog" } & ServerLogEntry)
|
||||
| {
|
||||
|
||||
Reference in new issue
Block a user