docs: update wg-basic/websocket

This commit is contained in:
Administrator 2021-10-09 09:48:11 +00:00 committed by John Smith
parent f8823e951b
commit ca613a6254

View File

@ -2,7 +2,7 @@
title: 7.即时消息 title: 7.即时消息
description: 即时消息模块的使用 description: 即时消息模块的使用
published: true published: true
date: 2021-10-09T09:47:39.941Z date: 2021-10-09T09:48:10.464Z
tags: wg-basic tags: wg-basic
editor: markdown editor: markdown
dateCreated: 2021-09-14T06:25:26.887Z dateCreated: 2021-09-14T06:25:26.887Z
@ -114,7 +114,7 @@ websocket:
# 自定义处理消息业务 # 自定义处理消息业务
1. 实现 `ink.wgink.module.instantmessage.service.IWebSocketTextCustomService` 接口 1. 实现 `ink.wgink.module.instantmessage.service.IWebSocketTextCustomService` 接口
2. 在 **handle** 方法中完成业务逻辑handle方法接收两个参数第一个参数时当前会话通道,第二个参数时消息体 2. 在 **handle** 方法中完成业务逻辑handle方法接收两个参数第一个参数是当前会话通道,第二个参数是消息体
3. 发送消息调用WebSocketChannelManager.getInstance().sendText(channel, message) 方法发送消息 3. 发送消息调用WebSocketChannelManager.getInstance().sendText(channel, message) 方法发送消息
# 通道管理器 # 通道管理器