Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //node.js Synchtube client
- //Format of a synchtube message is:
- // ~m~<msg.length>~m~msg\n
- // where msg is :
- // ["<msg.cmd>", {"data":{<msg.data>}}]
- //
- // For example, the unserialized command to join a room (in this case /r/animu) is:
- // { cmd : 'join',
- // timestamp : <current timestamp>,
- // roomid : '56424' }
- //
- // This is serialized to
- // ~m~44~m~["join", {"data":{"timestamp":<current timestamp>, "room_id":56424}}]\n
Advertisement
Add Comment
Please, Sign In to add comment