mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
15 lines
372 B
TypeScript
15 lines
372 B
TypeScript
import { RoomCommands, SessionCommands } from 'websocket';
|
|
|
|
export default 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);
|
|
}
|
|
}
|