remove unavailable sub online from API

This commit is contained in:
HF 2022-01-05 16:40:25 +01:00
parent c2a141a6b7
commit e4fa56fd73
2 changed files with 2 additions and 7 deletions

5
API.md
View File

@ -21,10 +21,9 @@ All chat messages, except the once you send with `chat` or `mcchat`, will be sen
channelId is an integer, channel 0 is `en` channel 1 is `int` and maybe more to come.
id is the user id
country is the [two-letter country code](https://www.nationsonline.org/oneworld/country_code_list.htm) in lowercase
### Subscribe to online user counter
```["sub", "online"]```
### Online user counter
Online counter will be sent to you as typical binary packages all 15s
Online counter will be sent to you as typical binary package (see `src/socket/packets/OnlineCounter.js`)
### Subscribe to pixel packages
```["sub", "pxl"]```

View File

@ -60,7 +60,6 @@ class APISocketServer {
ws.isAlive = true;
ws.subChat = false;
ws.subPxl = false;
ws.subOnline = false;
ws.on('pong', heartbeat);
ws.on('message', (message) => {
@ -172,9 +171,6 @@ class APISocketServer {
if (even === 'pxl') {
ws.subPxl = true;
}
if (even === 'online') {
ws.subOnline = true;
}
logger.info(`APISocket client subscribed to ${command}`);
return;
}