mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 01:42:50 +08:00
Add client poking (send and receive)
Uses tsclientlib's existing MessageTarget::Poke support end to end: a poke button on each client row opens a small compose overlay (an optional message, like TeamSpeak's own poke), and incoming pokes show as a dismissible, auto-expiring banner. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
76cb90360c
commit
ec034d2d6b
5 files changed
+214
-2
No files matched your search
@@ -42,6 +42,10 @@ wss.on("connection", (socket: WebSocket) => {
|
||||
await connection?.sendPrivateMessage(msg.clientId, msg.message);
|
||||
break;
|
||||
}
|
||||
case "sendPoke": {
|
||||
await connection?.sendPoke(msg.clientId, msg.message ?? "");
|
||||
break;
|
||||
}
|
||||
case "sendAudio": {
|
||||
await connection?.sendAudio(msg.pcm);
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user