Skip to content

Commit fb4661c

Browse files
committed
fix(warudo): revert WebSocket message format to old style
1 parent 14fb675 commit fb4661c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/domains/output/providers/avatar/warudo/warudo_provider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ async def _send_expression(self, param_name: str, param_value: float) -> None:
287287
return
288288

289289
try:
290-
message = {"type": "expression", "data": {param_name: param_value}}
290+
message = {"action": param_name, "data": param_value}
291291
# 使用 send_json(如果可用)或 send
292292
if hasattr(self.websocket, "send_json"):
293293
await self.websocket.send_json(message)
@@ -309,7 +309,7 @@ async def _send_hotkey(self, hotkey_id: str) -> None:
309309
return
310310

311311
try:
312-
message = {"type": "hotkey", "data": {"id": hotkey_id}}
312+
message = {"action": hotkey_id, "data": ""}
313313
# 使用 send_json(如果可用)或 send
314314
if hasattr(self.websocket, "send_json"):
315315
await self.websocket.send_json(message)

0 commit comments

Comments
 (0)