Gphandle

package
v0.0.0-...-d28e09f Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebSocketStruct

type WebSocketStruct struct {
	beego.Controller
}
var GWebSocketStruct *WebSocketStruct

func (*WebSocketStruct) BroadcastWebSocket

func (this *WebSocketStruct) BroadcastWebSocket(event GpPacket.IM_rec, Gpthis *GpManager.WebSocketListController)

broadcastWebSocket broadcasts messages to WebSocket users.

func (*WebSocketStruct) HandleSocket

func (this *WebSocketStruct) HandleSocket(Gpthis *GpManager.WebSocketListController)

Join method handles WebSocket requests for WebSocketController.

func (*WebSocketStruct) HeartWebSocket

func (this *WebSocketStruct) HeartWebSocket(msg GpPacket.IM_rec, Gpthis *GpManager.WebSocketListController)

func (*WebSocketStruct) NewByte

func (this *WebSocketStruct) NewByte(Gpthis *GpManager.WebSocketListController, ep GpPacket.EventType, SocketId uint32, msg string, rid uint32) GpPacket.IM_rec

func (*WebSocketStruct) SocketJoin

func (this *WebSocketStruct) SocketJoin(SocketId uint32, ws *websocket.Conn, Gpthis *GpManager.WebSocketListController)

func (*WebSocketStruct) SocketLeave

func (this *WebSocketStruct) SocketLeave(SocketId uint32, Gpthis *GpManager.WebSocketListController)

Jump to

Keyboard shortcuts

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