Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PescaChannel ¶
type PescaChannel struct {
// contains filtered or unexported fields
}
PescaChannel is a basic channel for sending messages.
func (*PescaChannel) Add ¶
func (c *PescaChannel) Add(socket typings.GeneralSocket) error
Add a new socket to this channel.
func (*PescaChannel) Broadcast ¶
func (c *PescaChannel) Broadcast(message events.MessageResponsePayload)
Broadcast a message to all sockets in this channel.
func (*PescaChannel) Remove ¶
func (c *PescaChannel) Remove(id string)
Remove the socket with the given id from this channel.
Click to show internal directories.
Click to hide internal directories.