Name
SPVM::Mojo::SSE - Server-Sent Events
Description
Mojo::SSE class in SPVM implements the Server-Sent Events protocol. Note that this module is EXPERIMENTAL and may change without warning!
Usage
use Mojo::SSE;
Class Methods
build_event
static method build_event : string ($event : Mojo::SSE::Event);
Build Server-Sent Event.
parse_event
static method parse_event : Mojo::SSE::Event ($buffer_ref : string[]);
Parse Server-Sent Event. Returns undef
if no complete event was found.
See Also
Copyright & License
Copyright (c) 2025 Yuki Kimoto
MIT License