feat: add ping

This commit is contained in:
Steve Korshakov 2025-07-16 22:37:28 -07:00
parent 652f435307
commit 1ace32e5c3

View File

@ -931,6 +931,10 @@ export async function startApi() {
}
});
socket.on('ping', async (callback: (response: any) => void) => {
callback({});
});
socket.emit('auth', { success: true, user: userId });
log({ module: 'websocket' }, `User connected: ${userId}`);
});