Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broadcaster ¶
type WebSocketBroadcaster ¶
type WebSocketBroadcaster[T any, PT *T] struct { // contains filtered or unexported fields }
func NewWebSocketBroadcaster ¶
func (*WebSocketBroadcaster[T, PT]) Publish ¶
func (ws *WebSocketBroadcaster[T, PT]) Publish(ctx context.Context, m PT) error
func (*WebSocketBroadcaster[T, PT]) ServeHTTP ¶
func (ws *WebSocketBroadcaster[T, PT]) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.