Documentation
¶
Overview ¶
Package workerws exposes the private WebSocket transport used by human TUI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New( config Config, authenticator auth.Authenticator, workerHub *hub.Hub, receiptStores ...storeapi.WorkerEventReceiptStore, ) (*Server, error)
func (*Server) Close ¶
func (server *Server) Close()
Close prevents new worker handshakes, terminates every active WebSocket, and waits until its handler has released the hub session and stopped touching the receipt store. net/http Server.Shutdown does not close hijacked WebSockets, so the embedding gateway must include this transport-specific drain before it closes SQLite.
Click to show internal directories.
Click to hide internal directories.