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 🌈


πŸ’– 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