ws

package
v0.0.0-...-8ecc595 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SocketURL

type SocketURL struct {
	Host   string
	Scheme string
	Path   string
	Port   int
	Origin string
}

SocketURL -

type Websocket

type Websocket struct {
	AlreadyCall    bool
	AlreadyDestroy bool
	Data           interface{}
	SocketURL      SocketURL
	ProxyURL       SocketURL
	UseProxy       bool
	Header         http.Header
	OnConnect      func()
	OnMessage      func(*[]byte)
	OnClose        func(interface{})
	OnError        func(interface{})
	Client         *websocket.Conn
	UserAgent      string
	sync.RWMutex
}

Websocket -

func (*Websocket) Destroy

func (cs *Websocket) Destroy()

Destroy -

func (*Websocket) Start

func (cs *Websocket) Start()

Start -

Jump to

Keyboard shortcuts

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