Cockatrice/webclient/src/api/RoomsService.tsx
2024-06-17 01:00:23 -04:00

15 lines
364 B
TypeScript

import { RoomCommands, SessionCommands } from 'websocket';
export class RoomsService {
static joinRoom(roomId: number): void {
SessionCommands.joinRoom(roomId);
}
static leaveRoom(roomId: number): void {
RoomCommands.leaveRoom(roomId);
}
static roomSay(roomId: number, message: string): void {
RoomCommands.roomSay(roomId, message);
}
}