Feature(web): Add toolbar audio toggle button
This commit is contained in:
@@ -51,6 +51,15 @@ func (h *wsHub) dispatch(c *wsClient, cmd string, raw []byte) {
|
||||
h.handleConnect(c, raw)
|
||||
case "rdp_reset":
|
||||
h.handleRdpReset(c, raw)
|
||||
case "audio_toggle":
|
||||
// Audio capture/forwarding is not yet ported from the C++ WebService
|
||||
// (see project_go_webservice_port). Reply explicitly so the front-end
|
||||
// console shows why the toolbar button has no effect, instead of the
|
||||
// request being silently dropped by the default case.
|
||||
c.queue(mustJSON(map[string]any{
|
||||
"cmd": "audio_toggle_result", "ok": false,
|
||||
"msg": "Audio toggle not supported on Go server yet",
|
||||
}))
|
||||
case "mouse":
|
||||
h.handleMouse(c, raw)
|
||||
case "key":
|
||||
|
||||
Reference in New Issue
Block a user