I'm discovering Meteor DDP protocol right now, there is not much documentation about it.
What I've found out is that Meteor server sends one character in front of every block of messages (which are sent like strings somewhy, do you know why?), like this:
c[2010,"Another connection still open"]
o
a["{\"server_id\":\"0\"}","{\"msg\":\"connected\",\"session\":\"BFWEff4389fjHFure\"}"]
a["{\"msg\":\"ready\",\"subs\":[\"fefjuihYFrvnuKOEF\"]}"]
(keys were changed)
What is the purpose of prepending this character? Where can I read more about it and about low-level DDP specification? Am I guaranteed (at least for pre1
version) that all messages are encoded in strings, and these strings concatenated into array, and each such array is prepended by a custom character?