A library that allows you to create multiple communication channels over a single byte stream. This allows to create smaller context sessions that are independent of each other. Session object is payload independent. Encoding and decoding or payload is beyond the scope of this package.
The API is very simple and limited to what I needed. It may (or may not) be extended in the future, feel free to raise to raise a PR or FR on github.
- Create session with automatic generation of session ID
- Detect incoming new sessions.
- Ability to terminate session on demand (both sender - receiver side)
- push-pull support (send with request for response)
- Push + pull support (send without waiting for response, read response at any time)
- Check if there is any waiting data in the session.
Please refer to the example for a very basic understanding of how it works. Then unit tests provide much more examples of usage.