sessionful 1.0.1 copy "sessionful: ^1.0.1" to clipboard
sessionful: ^1.0.1 copied to clipboard

Dart package which allow to multiplex communication in separate channels over any transport.

Sessionful #

Pub Package GitHub Issues GitHub Forks GitHub Stars GitHub License

What is it? #

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.

What is supported. #

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.

How to use #

Please refer to the example for a very basic understanding of how it works. Then unit tests provide much more examples of usage.

2
likes
150
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

Dart package which allow to multiplex communication in separate channels over any transport.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on sessionful