ws

package
v0.0.0-...-ad46f1d Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: BSD-2-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

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

func CreateCustomer

func CreateCustomer(encoder *parser.Encoder, conn *websocket.Conn) Customer

func (*Customer) Disconnect

func (c *Customer) Disconnect(reason string) error

func (*Customer) Emit

func (c *Customer) Emit(event string, msg interface{}) error

Implement IModel with Customer

func (*Customer) Ping

func (c *Customer) Ping() error

type IModel

type IModel interface {
	Emit(event string, msg interface{}) error
	Disconnect(reason string) error
	Ping() error
}

Jump to

Keyboard shortcuts

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