glue: github.com/desertbit/glue/backend/sockets/websocket Index | Files

package websocket

import "github.com/desertbit/glue/backend/sockets/websocket"

Index

Package Files

server.go socket.go

type Server Uses

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

func NewServer Uses

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

func (*Server) HandleRequest Uses

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

type Socket Uses

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

func (*Socket) Close Uses

func (w *Socket) Close()

func (*Socket) ClosedChan Uses

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

func (*Socket) IsClosed Uses

func (w *Socket) IsClosed() bool

func (*Socket) ReadChan Uses

func (w *Socket) ReadChan() chan string

func (*Socket) RemoteAddr Uses

func (w *Socket) RemoteAddr() string

func (*Socket) Type Uses

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

func (*Socket) UserAgent Uses

func (w *Socket) UserAgent() string

func (*Socket) WriteChan Uses

func (w *Socket) WriteChan() chan string

Package websocket imports 10 packages (graph) and is imported by 2 packages. Updated 2017-12-27. Refresh now. Tools for package owners.