Hi, Is there an example or a tutorial which shows how to implement a tcp based protocol, based on the streams2 api?
Several tutorials I've found show how to publish a stream of numbers or other simple, non-network streams. I have a protocol which sits on top of tcp. It has the usual characteristics of a protocol: -Frame decoder -Message validation, error handling -Heartbeat functionality (optionally hidden from end-user) -Text to object conversion (and back again) I parse the text based protocol and convert it to an object. The client receives this object, does whatever, sends responds back in terms of objects (which then get translated to text at lower level) I'd like the end-user api to be a streams2 api, I'm assuming that basing my api on a node standard will make it easy for end-users to pick it up. I don't mind studying a published library, as long as the code isn't too complex. Thanks -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/67a1ac97-eacc-4521-bb39-8b9ba390f902%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
