diff --git a/API.md b/API.md index 0c62f23..90e37ab 100644 --- a/API.md +++ b/API.md @@ -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"]``` diff --git a/src/socket/APISocketServer.js b/src/socket/APISocketServer.js index 80b587a..67670e1 100644 --- a/src/socket/APISocketServer.js +++ b/src/socket/APISocketServer.js @@ -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; }