privater

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WebsocketManager *gmap.Map
)

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Socket *ghttp.WebSocket

	Unique string

	Ctx       context.Context
	CtxClose  func()
	Heartbeat *gtimer.Entry
	// contains filtered or unexported fields
}

func (*Connection) Close

func (c *Connection) Close()

关闭连接

func (*Connection) Pack

func (c *Connection) Pack(data g.Map) []byte

func (*Connection) WriteMsg

func (c *Connection) WriteMsg(msg []byte)

Jump to

Keyboard shortcuts

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