ajaxsocket

package
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: 11 Imported by: 2

Documentation

Overview

Package ajaxsocket provides the ajax socket implementation.

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(w http.ResponseWriter, req *http.Request)

type Socket

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

func (*Socket) Close

func (s *Socket) Close()

func (*Socket) ClosedChan

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

func (*Socket) IsClosed

func (s *Socket) IsClosed() bool

func (*Socket) ReadChan

func (s *Socket) ReadChan() chan string

func (*Socket) RemoteAddr

func (s *Socket) RemoteAddr() string

func (*Socket) Type

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

func (*Socket) UserAgent

func (s *Socket) UserAgent() string

func (*Socket) WriteChan

func (s *Socket) WriteChan() chan string

Jump to

Keyboard shortcuts

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