Documentation
¶
Overview ¶
Package publisher provides a standalone pub/sub server on a fixed port. Browser bookmarklets publish page content; MCP sessions subscribe via long-poll. CRC: crc-Publisher.md | Seq: seq-publisher-lifecycle.md, seq-publish-subscribe.md
Index ¶
Constants ¶
View Source
const ( DefaultAddr = "localhost:25283" PollTimeout = 60 * time.Second PublishTTL = 20 * time.Millisecond IdleTimeout = 5 * time.Minute IdleCheckEvery = 10 * time.Second MaxBodySize = 1 << 20 // 1MB )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
Publisher is a topic-based pub/sub HTTP server.
func (*Publisher) ListenAndServe ¶
ListenAndServe starts the HTTP server and idle watchdog. Blocks until the server shuts down.
Click to show internal directories.
Click to hide internal directories.