chore: marke change api call async

This commit is contained in:
arc-alex
2025-12-15 14:15:12 +01:00
committed by Carlos Valente
parent ba75d52d29
commit 6beda1575a
3 changed files with 10 additions and 18 deletions
+2 -2
View File
@@ -102,7 +102,7 @@ class SocketServer implements IAdapter {
this.sendClientList();
});
ws.on('message', (data) => {
ws.on('message', async (data) => {
try {
const message = JSON.parse(data.toString()) as WsPacketToServer;
const { tag, payload } = message;
@@ -142,7 +142,7 @@ class SocketServer implements IAdapter {
tag satisfies never;
// Protocol specific stuff handled above
try {
const reply = dispatchFromAdapter(tag, payload, 'ws');
const reply = await dispatchFromAdapter(tag, payload, 'ws');
if (reply) {
ws.send(
JSON.stringify({