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