Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMessageTooLarge is returned when reading a message that is larger than // our max size ErrMessageTooLarge = errors.New("message too large") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a read-only connection to a socket
func (*Client) Recv ¶
Recv waits for a message from the socket. It's guaranteed to either return a complete message or an error
func (*Client) SetMaxMessageSize ¶
SetMaxMessageSize sets the maximum size to allow for messages
type Socket ¶
type Socket struct {
// contains filtered or unexported fields
}
Socket manages sending messages over a socket to many subscribed clients
func NewSocket ¶
NewSocket creates a new socket object for the given address. It does not open the socket until Listen is called.
func (*Socket) Close ¶
Close closes the socket by cutting off new connections, closing all existing ones, and then zero'ing out the connection pool
Click to show internal directories.
Click to hide internal directories.