websocket

package
Version: v0.0.0-...-06de07e Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(onNewSocketConnectionFunc func(*Socket)) *Server

func (*Server) HandleRequest

func (s *Server) HandleRequest(rw http.ResponseWriter, req *http.Request)

type Socket

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

func (*Socket) Close

func (w *Socket) Close()

func (*Socket) ClosedChan

func (w *Socket) ClosedChan() <-chan struct{}

func (*Socket) IsClosed

func (w *Socket) IsClosed() bool

func (*Socket) ReadChan

func (w *Socket) ReadChan() chan string

func (*Socket) RemoteAddr

func (w *Socket) RemoteAddr() string

func (*Socket) Type

func (w *Socket) Type() global.SocketType

func (*Socket) UserAgent

func (w *Socket) UserAgent() string

func (*Socket) WriteChan

func (w *Socket) WriteChan() chan string

Jump to

Keyboard shortcuts

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