Relevant properties:
// amount of visitors
"place_active_visitors": 50149,
// ???
"place_wait_seconds": 0,
// width of the canvas element
"place_canvas_width": 1000,
// height of the canvas element
"place_canvas_height": 1000,
// cooldown between places
"place_cooldown": 300,
// url of websocket which broadcasts places - may be unique on each load
"place_websocket_url": "wss://ws-03ddd0c61a1d8a4f8.wss.redditmedia.com/place?m=AQAAtfreWLK3pD9FQA1Oh4H1as9T71KZGtaLTqLGXxudLcDq5pQR",
JSON
{
"type": "place", // type of message
"payload": {
"x": 506, // x position of pixel
"y": 436, // y position of pixel
"color": 3, // color of pixel, zero-indexed. index of color in palette
"author": "spez" // username of placer
}
}
{
"type": "activity", // type of message
"payload": {
"count": 9001 // amount of users playing
}
}
GET
https://www.reddit.com/api/place/board-bitmap
fetch the map data from reddit api (encoded)
POST
https://www.reddit.com/api/place/draw.json
send form data to draw a pixel (requires session cookie)
x:459
y:372
color:13