separate en/de-coder for substreams
can I use different parsers for separate substeams (and main stream)? If yes, how do I do that?
I have Parser object instantiated on the server side with default JSON parser.
Can I simply use a new substream for binary data?
AFAIK right now it isn't possible. Every substream uses the same parser (the one used by the underlying stream).
Hows hard would it be to implement this feature? Any tips/tricks/workarounds you could think of?
I don't know, it's not easy and it will probably require structural changes in Primus.
I guess, I have to use multiple primus instances on server side and client side if I need to use primus for both binary and JSON data transfer. Or, intercept messages?
Can you think of a module that allows binary file transfer using primus? I only found some links for socket.io through Google.