Mojo::SSE − Server−Sent Events
use Mojo::SSE qw(build_event parse_event);
Mojo::SSE implements the Server−Sent Events protocol. Note that this module is EXPERIMENTAL and may change without warning!
Mojo::SSE implements the following functions, which can be imported individually.
my $bytes = build_event $event, $chars;
Build Server−Sent Event.
my $event = parse_event \$bytes;
Parse Server−Sent Event. Returns "undef" if no complete event was found.
Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.