class

Freshen::Client

Inherits Reference < Object

Encapsulates a connected SSE client stream with per-stream write synchronization.

Constructors

new(id : String, stream : IO)
Source

Instance methods

mutex
Source
stream
Source
write(payload : String) : Nil

Thread-safely writes data to the client stream and flushes.

Source