This PR adds a data buffer that buffers written data and only sends it to the client when the flush method is called.
In addition, the behaviour of the dispatch method has been split into two different methods: dispatch, only writing a newline, and flush that flushes the buffer data to the client and clears the buffer.
This is a breaking change to the public API and will be released in the next 0.x.0 release.
Resolves #35.
This PR adds a data buffer that buffers written data and only sends it to the client when the
flush
method is called.In addition, the behaviour of the
dispatch
method has been split into two different methods:dispatch
, only writing a newline, andflush
that flushes the buffer data to the client and clears the buffer.This is a breaking change to the public API and will be released in the next
0.x.0
release.