# picjam-game **Repository Path**: mirrors_gregberge/picjam-game ## Basic Information - **Project Name**: picjam-game - **Description**: PicJam game realised during FHacktory 2014. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-10-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PicJam Game ## WS API - `>` client to server - `<` server to client #### User #### < user.update Emitted when a user is updated. ```js { id: '...', username: '...' } ``` #### > me.update Update our own data. ```js { username: '' } ``` ### Chat #### > chat Send a new chat message. ```js { text: '...' } ``` #### < chat Emitted when a new message is received. ```js { user: {...}, text: '...' } ``` ### Game #### < game.join Emitted when you or a user join the game. ```js { game: { id: '...', users: [{...}, {...}] }, user: { id: '...', username: '...' }, me: true } ``` #### < game.leave Emitted when a user leave the game. ```js { game: { id: '...', users: [{...}, {...}] }, user: { id: '...' } } ``` #### < game.start Emitted when the game start. ```js { time: 10 } ``` #### < game.end Emitted when the game end. ```js { ranks: [ { userId: 'xxx', score: 'xxx', rank: 1 } ] } ``` ### Questions #### < question.start Emitted when a new question is sent. ```js { id: '...', time: 30 } ``` #### < question.update Emitted when a question must be updated. ```js { id: '...', svg: {} } ``` #### > question.answer Send an answer to the question. ```js { id: '...', questionId: '...', text: '...' } ``` #### < question.answer.ack Emitted to acknowledge the answer to a question. ```js { id: '...', valid: true } ``` #### < question.winner Emitted when a user answer correctly to the question. ```js { question: {...}, user: {...}, rank: 1, points: 3 } ``` #### < question.end Emitted when the question is finished. ```js { time: 10, scores: { 'userIdxxx': 10 } } ```