Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BroadcastServer ¶
type BroadcastServer interface { Subscribe() <-chan Message CancelSubscription(<-chan Message) Close() }
func NewBroadcastServer ¶
func NewBroadcastServer(ctx context.Context, source <-chan Message) BroadcastServer
type Server ¶
func (*Server) HandleClientConnection ¶
func (s *Server) HandleClientConnection(w http.ResponseWriter, r *http.Request)
func (*Server) RemoveClient ¶
func (*Server) SendCommandWithBroadcast ¶
func (s *Server) SendCommandWithBroadcast(clientID string, msg Message) (BroadcastServer, error)
Click to show internal directories.
Click to hide internal directories.