websocket

package
v0.0.0-...-eea11df Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ONLINE_COUNT   = 1 // 在线人数
	HISTORY_RECORD = 2 // 历史记录
	SEND_MESSAGE   = 3 // 发送消息
	RECALL_MESSAGE = 4 // 撤回消息
	HEART_BEAT     = 5 // 心跳
)

Variables

This section is empty.

Functions

func ConvertChatMessageTypes

func ConvertChatMessageTypes(in *messagerpc.ChatMessageDetails) *types.ChatMsgResp

Types

type WebSocketLogic

type WebSocketLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewWebSocketLogic

func NewWebSocketLogic(ctx context.Context, svcCtx *svc.ServiceContext) *WebSocketLogic

WebSocket消息

func (*WebSocketLogic) WebSocket

func (l *WebSocketLogic) WebSocket(w http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

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