Documentation
¶
Overview ¶
Package eventbus is a tiny in-process publish/subscribe hub for the server to client push channel. The web layer publishes typed events (a coder started, a shell was renamed, the tab order changed) and the event stream handler fans them out to every connected browser over one SSE connection. The bus keeps no history: a fresh subscriber is caught up by the snapshot the stream handler pushes on connect, not by replay.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus struct {
// contains filtered or unexported fields
}
Bus fans events out to every current subscriber. Safe for concurrent use.
Click to show internal directories.
Click to hide internal directories.