mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Add client move/DnD, ServerQuery favorite toggle, and TeaSpeak poke handling.
Lets users move clients via context menu or drag-and-drop (including spacers), show ServerQuery clients per favorite without reconnecting, and surface TeaSpeak/GTS notifyclientpoke reliably via connector fallback plus tsclientlib parse fallthrough. EOF Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
bf85173a54
commit
b6448e65e8
11 files changed
+428
-28
No files matched your search
@@ -277,6 +277,20 @@ export class DemoSocket {
|
||||
);
|
||||
break;
|
||||
}
|
||||
case "moveClient": {
|
||||
const clientId = Number(msg.clientId);
|
||||
const channelId = Number(msg.channelId);
|
||||
if (Number.isFinite(clientId) && Number.isFinite(channelId)) {
|
||||
if (clientId === SELF_ID) {
|
||||
this.selfChannel = channelId;
|
||||
} else {
|
||||
const npc = DEMO_NPCS.find((c) => c.id === clientId);
|
||||
if (npc) npc.channel = channelId;
|
||||
}
|
||||
this.after(120, () => this.sendChannels(this.lastNickname));
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "getClientConnectionInfo": {
|
||||
this.after(400, () =>
|
||||
this.emit({
|
||||
|
||||
Reference in new issue
Block a user