mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-11 18:33:53 +00:00
chore: marke change api call async
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user