Documentation
¶
Overview ¶
Package events tells the open web apps of an account that its notes changed, so they read them again: an agent working through the MCP or the CLI shows its changes live. Every write goes through the API, so the API is the one to tell, not the base.
Index ¶
Constants ¶
const ClientHeader = "Tide-Client"
ClientHeader names the app that sent a request: its own changes come back with its name, and it skips them.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
Handler streams the account's changes as server-sent events, one "data: <client>" each, until the app leaves.
@Summary The account's changes, live (server-sent events)
@Tags notes
@Produce text/event-stream
@Success 200 {string} string "data: <the Tide-Client header of the change>"
@Failure 401 {object} respond.Failure
@Router /api/events [get]
Types ¶
This section is empty.