glue: Index | Files

package ajaxsocket

import ""

Package ajaxsocket provides the ajax socket implementation.


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

type Socket Uses

type Socket struct {
    // contains filtered or unexported fields

func (*Socket) Close Uses

func (s *Socket) Close()

func (*Socket) ClosedChan Uses

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

func (*Socket) IsClosed Uses

func (s *Socket) IsClosed() bool

func (*Socket) ReadChan Uses

func (s *Socket) ReadChan() chan string

func (*Socket) RemoteAddr Uses

func (s *Socket) RemoteAddr() string

func (*Socket) Type Uses

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

func (*Socket) UserAgent Uses

func (s *Socket) UserAgent() string

func (*Socket) WriteChan Uses

func (s *Socket) WriteChan() chan string

Package ajaxsocket imports 11 packages (graph) and is imported by 2 packages. Updated 2017-11-20. Refresh now. Tools for package owners.