tgd-backend/src/shared/events.consts.ts

17 lines
605 B
TypeScript

export enum SocketEvents {
PHOTOS_UPDATED_EVENT = 'photos_updated',
VALID_ANSWER_RECEIVED = 'answer_received',
WRONG_ANSWER_RECEIVED = 'wrong_answer_received',
USER_ADDED = 'user_added',
USER_PROPERTY_CHANGED = 'user_property_changed',
CARDS_CHANGED_EVENT = 'cards_changed',
CARD_PLAYED = 'card_played',
SCORE_CHANGED = 'score_changed',
GameQueueItem = 'game_queue',
QUEUE_COMPLETED = 'queue_completed',
GAME_PAUSED = 'game_paused',
GAME_RESUMED = 'game_resumed',
NOTIFICATION = 'notification',
FEATURE_FLAG_CHANGED = 'feature_flag_changed',
BEGIN_VERSUS = 'begin_versus',
}