Documentation
¶
Index ¶
- type Hub
- func (h *Hub) HandleSSE(w http.ResponseWriter, r *http.Request, userID string) error
- func (h *Hub) HandleWebSocket(w http.ResponseWriter, r *http.Request, userID string) error
- func (h *Hub) MaxConnectionsPerUser() int
- func (h *Hub) PushMessage(userID string, data any) error
- func (h *Hub) PushMessageWaitAck(userID string, data any, timeout time.Duration) PushAckResult
- func (h *Hub) Stats() Stats
- func (h *Hub) SubscribeInbound(handler func(InboundMessage)) func()
- func (h *Hub) Transport() Transport
- type InboundMessage
- type PushAckResult
- type Stats
- type Transport
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
}
func (*Hub) HandleWebSocket ¶
func (*Hub) MaxConnectionsPerUser ¶
func (*Hub) PushMessageWaitAck ¶
func (*Hub) SubscribeInbound ¶
func (h *Hub) SubscribeInbound(handler func(InboundMessage)) func()
type InboundMessage ¶
type PushAckResult ¶
Click to show internal directories.
Click to hide internal directories.