Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope interface {
String() string // Represent the envelope contents as a string for transmission.
}
Envelope defines the interface for content that can be broadcast to clients.
type Manager ¶
type Manager interface {
Send(message Envelope)
Handle(ctx *fiber.Ctx, cl Listener)
Register(cl Listener)
Unregister(id string)
Clients() []string
}
Manager defines the interface for managing clients and broadcasting messages.
func NewManager ¶
NewManager initializes and returns a new Manager instance.
Click to show internal directories.
Click to hide internal directories.