v3: added opengraph support to the app, wrote README instructions incl. a Docker image
This commit is contained in:
@@ -66,6 +66,15 @@ export function sendToUser(userId: string, data: ServerToClientMessage): void {
|
||||
}
|
||||
}
|
||||
|
||||
export function disconnectUser(userId: string): void {
|
||||
for (const client of clients) {
|
||||
if (client.userId === userId) {
|
||||
send(client.socket, { type: "force_logout" });
|
||||
client.socket.close(1000, "Account deleted");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function broadcastPresence(): void {
|
||||
const users = getOnlineUsers();
|
||||
for (const client of clients) {
|
||||
|
||||
Reference in New Issue
Block a user