Documentation
¶
Index ¶
- type WebSocketStruct
- func (this *WebSocketStruct) BroadcastWebSocket(event GpPacket.IM_rec, Gpthis *GpManager.WebSocketListController)
- func (this *WebSocketStruct) HandleSocket(Gpthis *GpManager.WebSocketListController)
- func (this *WebSocketStruct) HeartWebSocket(msg GpPacket.IM_rec, Gpthis *GpManager.WebSocketListController)
- func (this *WebSocketStruct) NewByte(Gpthis *GpManager.WebSocketListController, ep GpPacket.EventType, ...) GpPacket.IM_rec
- func (this *WebSocketStruct) SocketJoin(SocketId uint32, ws *websocket.Conn, Gpthis *GpManager.WebSocketListController)
- func (this *WebSocketStruct) SocketLeave(SocketId uint32, Gpthis *GpManager.WebSocketListController)
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)
Click to show internal directories.
Click to hide internal directories.