feat: add ping
This commit is contained in:
parent
652f435307
commit
1ace32e5c3
@ -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}`);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user