falaina

Untitled

Aug 5th, 2011
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. //node.js Synchtube client
  2. //Format of a synchtube message is:
  3. // ~m~<msg.length>~m~msg\n
  4. // where msg is :
  5. // ["<msg.cmd>", {"data":{<msg.data>}}]
  6. //
  7. // For example, the unserialized command to join a room (in this case /r/animu) is:
  8. // { cmd : 'join',
  9. // timestamp : <current timestamp>,
  10. // roomid : '56424' }
  11. //
  12. // This is serialized to
  13. // ~m~44~m~["join", {"data":{"timestamp":<current timestamp>, "room_id":56424}}]\n
Advertisement
Add Comment
Please, Sign In to add comment