Name

SPVM::Mojo::SSE::Event - SSE Event

Description

Mojo::SSE::Event class in SPVM represents a SSE(Server-Sent Events) event.

This class is EXPERIMENTAL.

Usage

use Mojo::SSE::Event;

Fields

id

has id : rw string;

id field of a SSE event.

type

has type : rw string;

event field of a SSE event.

texts

has texts : rw string[];

data fields of a SSE event.

text

has text : virtual rw string;

A virtual method to get/set "texts" field.

The input/output is split/joined by newlines.

comments

has comments : rw string[];

Comments of a SSE event.

comment

has comment : virtual rw string;

A virtual method to get/set "comments" field.

The input/output is split/joined by newlines.

Class Methods

static method new : Mojo::SSE::Event ();

Creates a new Mojo::SSE::Event object, and returns it.

See Also

Copyright & License

Copyright (c) 2025 Yuki Kimoto

MIT License