Skip to content
BigETI edited this page Jul 4, 2019 · 3 revisions

skribbl.io API documentation

Introduction

skribbl.io is a platform to draw and guess words with other people.

Notice

This documentation is not complete and can change anytime.

Interface

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.

Clone this wiki locally