websocketconn

package module
v0.0.0-...-aec97d5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MIT Imports: 7 Imported by: 0

README

websocketconn

a handy helper for using gorilla/websocket

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	ID string

	Read           chan map[string]interface{}
	Write          chan []byte
	WriteWait      time.Duration
	PongWait       time.Duration
	PingPeriod     time.Duration
	MaxMessageSize int64
	// contains filtered or unexported fields
}

Conn :

func CreateConn

func CreateConn(w http.ResponseWriter, r *http.Request) (*Conn, error)

CreateConn :

func (*Conn) Start

func (c *Conn) Start()

Start :

Jump to

Keyboard shortcuts

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