Server Events
The server listens to these events.
Next Card
Tell the server to get a new Card
Parameters
None
Submit Answer
Send the user's vote to the server
Parameters
Name | Type | About |
---|---|---|
answer | String or number | For WYR, NHIE, & TOD, this should be either |
Get Votes
This is only for MLT, NHIE, WYR, & TOD
Get all the current votes to display to the user.
Parameters
Name | Type | About |
---|---|---|
type | Number | Either |
Get Player List
Do not use this for MLT as they automatically send this with new_question
Parameters
None
Chat
Send a message to the chat
Parameters
Name | Type | About |
---|---|---|
message | String | The user's message |
Add Pack
Add a Pack to the game
Parameters
Name | Type | About |
---|---|---|
packId | String | The ID of the pack to add. |
Kicking Users
Only the host can emit this event!
Additional Events
These events only apply to Word Wreck, Choice Duel, Freeplay, and Caption Clash
Since some games have more components to it, it has a few extra events.
Vote
Submit a vote for an answer.
Parameters
Name | Type | About |
---|---|---|
uid | String | The UID of the user the player voted for |
Last updated