-
Notifications
You must be signed in to change notification settings - Fork 0
Home
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 using Socket.IO, which uses the Engine.IO Protocol.
In short messages can be UTF-8 encoded strings or binary data that starts with a packet type ID that is directly prepended to the message content.
An example message could look like this:
2probe
2
is the packet type 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 packet type ID and
["chat",{"id":123,"message":"Hello World!"}]
is the message content.
An event is sent as a JSON array, where the first entry is the event name and the second entry contains arguments to that event, if defined.
The first element inside the event message is of type string, and the type of the second element depends on the first entry.
In this documentation the first entry will be called "Event" and the second entry will be called "Argument", if defined.
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)