Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
type TCPConnection ¶
type TCPConnection struct {
// contains filtered or unexported fields
}
func (*TCPConnection) Close ¶
func (c *TCPConnection) Close()
func (*TCPConnection) Receive ¶
func (c *TCPConnection) Receive() (string, error)
func (*TCPConnection) Send ¶
func (c *TCPConnection) Send(msg Message)
type User ¶
type User struct {
// contains filtered or unexported fields
}
User that enters to the server
func (*User) SetOutgoingChannel ¶
SetOutgoingChannel to use
type WSConnection ¶
type WSConnection struct {
// contains filtered or unexported fields
}
func (*WSConnection) Close ¶
func (c *WSConnection) Close()
func (*WSConnection) Receive ¶
func (c *WSConnection) Receive() (string, error)
func (*WSConnection) Send ¶
func (c *WSConnection) Send(msg Message)
type WSIncomingMessage ¶
type WSIncomingMessage struct {
Body string `json:"body"`
}
type WSOutgoingMessage ¶
Click to show internal directories.
Click to hide internal directories.