connect

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnectList sync.Map

ConnectList 存储全局websocket连接

Functions

func AddCon

func AddCon(uid string, con *websocket.Conn)

AddCon 添加一个连接

func DeleteCon

func DeleteCon(uid string)

DeleteCon 删除一个连接

func GetCon

func GetCon(uid string) *websocket.Conn

GetCon 获取一个连接

Types

This section is empty.

Jump to

Keyboard shortcuts

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