Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultPort = 9106
DefaultPort is the default port for the WebSocket server
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emitter ¶
type Emitter struct {
// contains filtered or unexported fields
}
type Message ¶
type Message struct { ID int64 `json:"id"` // Combination of timestamp and sequence number (see Emitter.sequence for details) Body interface{} `json:"body"` }
Emitter implements WebSocket server that broadcasts log entries to connected clients Message represents a WebSocket message with ID
Click to show internal directories.
Click to hide internal directories.