wsmsg

package
v0.0.0-...-c1a347c Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

type WsMsg

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

WsMsg maintains the set of active clients and broadcasts messages to the clients.

func NewWsMsg

func NewWsMsg() *WsMsg

func (*WsMsg) Broadcast

func (wm *WsMsg) Broadcast(msg []byte)

func (*WsMsg) EchoHandler

func (wm *WsMsg) EchoHandler(c echo.Context) error

func (*WsMsg) Run

func (wm *WsMsg) Run()

Jump to

Keyboard shortcuts

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