ws

package
v0.0.0-...-4675b65 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientCount

func ClientCount(uid uint) int

func ClientRegister

func ClientRegister(user sec.UserInfo, conn *websocket.Conn) uint64

func ClientUnregister

func ClientUnregister(user sec.UserInfo, id uint64)

func Listen

func Listen(c *websocket.Conn)

func WebsocketPush

func WebsocketPush(uid uint, body []byte) (count int, successes []uint64, errs []error)

func WebsocketPushBatch

func WebsocketPushBatch(uidList []uint, body []byte) (count int, successes []uint64, errs []error)

func WebsocketPushBatchDirect

func WebsocketPushBatchDirect(clientIdList []uint64, body []byte) (count int, successes []uint64, errs []error)

func WebsocketPushDirect

func WebsocketPushDirect(clientId uint64, body []byte) (count int, successes []uint64, errs []error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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