realtime

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package realtime declares the browser presentation-event realtime compiler capability and exposes dependency-free SSE helpers.

Index

Constants

View Source
const ImportPath = "github.com/cssbruno/gowdk/addons/realtime"

ImportPath is the canonical Go import path for the realtime addon.

Variables

This section is empty.

Functions

func Addon

func Addon() gowdk.Addon

Addon enables realtime presentation-event fanout support.

Types

type PresentationFanout

type PresentationFanout = contracts.PresentationFanout

PresentationFanout sends browser-facing presentation events.

type SSEHub

type SSEHub = runtimerealtime.SSEHub

SSEHub fans presentation events out to connected server-sent events clients.

func NewSSE

func NewSSE(options ...SSEOption) *SSEHub

NewSSE creates a dependency-free server-sent events presentation fanout hub.

type SSEOption

type SSEOption = runtimerealtime.SSEOption

SSEOption configures a dependency-free SSE hub.

func WithSSEBufferSize

func WithSSEBufferSize(size int) SSEOption

WithSSEBufferSize sets each SSE client's queued message buffer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL