Documentation
¶
Overview ¶
Package websocketfanout provides a WebSocket presentation fanout adapter for runtime/contracts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub fans presentation events out to connected WebSocket clients.
func (*Hub) ClientCount ¶
ClientCount returns the number of currently connected clients.
func (*Hub) SendPresentationEvents ¶
SendPresentationEvents broadcasts presentation events to connected clients. Non-presentation events are ignored.
type Option ¶
type Option func(*Hub)
Option configures a Hub.
func WithAcceptOptions ¶
func WithAcceptOptions(options websocket.AcceptOptions) Option
WithAcceptOptions sets the options used for WebSocket upgrades.
func WithBufferSize ¶
WithBufferSize sets each client's queued message buffer. Non-positive values keep the default.
Click to show internal directories.
Click to hide internal directories.