goeventws

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

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 6 Imported by: 0

README

go-eventws

Event-based WebSocket

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FdRW

type FdRW int

func (FdRW) Read

func (fd FdRW) Read(p []byte) (int, error)

func (FdRW) Write

func (fd FdRW) Write(p []byte) (int, error)

type Server

type Server struct {
	OnWsMessage func(data []byte, opcode ws.OpCode, fd int)
	// contains filtered or unexported fields
}

func NewServer

func NewServer(pollerSize int, loops int, poolsize int) (*Server, error)

func (*Server) AttachClient

func (server *Server) AttachClient(fd int) error

func (*Server) SetOncloseCallback

func (server *Server) SetOncloseCallback(f func(fd int))

func (*Server) StartPoller

func (server *Server) StartPoller()

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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