Documentation ¶ Index ¶ type Client func New(conn *websocket.Conn) *Client func (c *Client) Close() error func (c *Client) Read(p []byte) (n int, err error) func (c *Client) ReadFromWS(p []byte) (n int, err error) func (c *Client) Send(prefix byte, p []byte) (n int, err error) func (c *Client) Write(p []byte) (n int, err error) func (c *Client) WriteLoop() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { IP string Nick string // contains filtered or unexported fields } func New ¶ func New(conn *websocket.Conn) *Client func (*Client) Close ¶ func (c *Client) Close() error func (*Client) Read ¶ func (c *Client) Read(p []byte) (n int, err error) func (*Client) ReadFromWS ¶ func (c *Client) ReadFromWS(p []byte) (n int, err error) func (*Client) Send ¶ func (c *Client) Send(prefix byte, p []byte) (n int, err error) func (*Client) Write ¶ func (c *Client) Write(p []byte) (n int, err error) func (*Client) WriteLoop ¶ func (c *Client) WriteLoop() Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.