Mojo::SSE(3)
π Mojo::SSE(3) β Server-Sent Events, bestie! π
okay so this is the Mojo::SSE(3) manual page, and it's giving "tiny module, very specific job." We're doing Server-Sent Events here. β¨
πΈ NAME πΈ
Mojo::SSE β Server-Sent Events. That's it, that's the name. π
π SYNOPSIS π
use Mojo::SSE qw(build_event parse_event);
π¦ DESCRIPTION π¦
Mojo::SSE implements the Server-Sent Events protocol. No cap. π«Ά
β οΈ Heads up, bestie: this module is EXPERIMENTAL and may change without warning! So maybe don't build your entire personality around its current API. π
π FUNCTIONS π
Mojo::SSE implements the following functions, which can be imported individually. Slay. π₯
π οΈ build_event π οΈ
my $bytes = build_event $event, $chars;
Build Server-Sent Event. That's the whole job. You hand it $event and $chars, and it gives you back $bytes. β¨
π parse_event π
my $event = parse_event \$bytes;
Parse Server-Sent Event. It returns undef if no complete event was found. So if you get nothing back... yeah, no complete event yet, bestie. π«
π SEE ALSO π
MojoliciousMojolicious::Guideshttps://mojolicious.org
π cute little sign-off: this page is from perl v5.42.0, dated 2026-07-15, and it's the Mojo::SSE(3) manual. periodt. π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Mojolicious 9.480.0-bp160.2.1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms