-
Notifications
You must be signed in to change notification settings - Fork 0
Home
BigETI edited this page Jul 1, 2019
·
3 revisions
skribbl.io is a platform to draw and guess words with other people.
This documentation is not complete and can change anytime.
All messages between client and server are exchanged via websockets and are UTF-8 encoded strings. Each message starts with an ID. The ID is an integer and is directly preprended to the message content. The content of a message is simply an array of bytes, meaning it can be text or whatever else you want it to be.
An example message could look like this:
2probe
2 is the message ID and probe is the message content.
The message content could also be JSON for example:
42["chat",{"id":123,"message":"Hello World!"}]
42 is the message ID and
["chat",{"id":123,"message":"Hello World!"}]is the message content.
This documentation will be categorized by message IDs.
This documentation is licensed under CC-BY-4.0.
- Choose word (client)
- Clear canvas (client)
- Draw (client)
- Send chat message (client)
- Set lobby custom words exclusive (client)
- Set lobby draw time (client)
- Set lobby rounds (client)
- Start game (client)
- Choose word (server)
- Clear canvas (server)
- Connected to lobby (server)
- Current word (server)
- Disconnected from lobby (server)
- Draw (server)
- Kicked from lobby (server)
- Notify server restart (server)
- Player has been connected (server)
- Player has been disconnected (server)
- Player has been kicked (server)
- Player has guessed word (server)
- Rate player drawing (server)
- Reveal word (server)
- Send chat message (server)
- Show lobby scene (server)
- Spam detected (server)
- Start game (server)
- Update drawer (server)
- Update lobby custom words exclusive (server)
- Update lobby draw time (server)
- Update lobby rounds (server)
- Update lobby state (server)
- Update lobby time (server)
- Vote to kick player (server)