Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoContextOrSocket = errors.New("You need to provide a valid Context and Socket channel")
ErrNoContextOrSocket is returned when there are missing parameters in the Join function
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel holds the channel information
func (Channel) Broadcast ¶
Broadcast sends a message to the whole channel except for the provided IDs
func (Channel) Join ¶
func (c Channel) Join(options JoinOptions)
Join adds a client to the channel, waits until the context is done and removes it
Click to show internal directories.
Click to hide internal directories.