websocket

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitWebsocket

func InitWebsocket(svcCtx *svc.ServiceContext, addrs []string, accept int) (err error)

InitWebsocket listen all tcp.bind and start accept connections.

Types

type CometServer

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

func NewCometServer

func NewCometServer(svcCtx *svc.ServiceContext) *CometServer

func (*CometServer) ServeWebsocket

func (s *CometServer) ServeWebsocket(conn net.Conn, rp, wp *bytes.Pool, tr *xtime.Timer)

ServeWebsocket serve a websocket connection.

Jump to

Keyboard shortcuts

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