ws

package
v0.0.0-...-52789aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2018 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client handle websockets clients

func NewClient

func NewClient(conn *websocket.Conn) *Client

NewClient return a new client

func (*Client) Close

func (c *Client) Close()

Close close the client connection

func (*Client) Messages

func (c *Client) Messages() <-chan string

Messages return the inbound messages channel

func (*Client) Send

func (c *Client) Send(msg string)

Send send a message to the outbound channel

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL