1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| package cn.flightfeather.supervision.socket.processor
|
| import cn.flightfeather.supervision.common.log.BizLog
| import cn.flightfeather.supervision.common.log.WorkStreamLogInfo
| import org.springframework.stereotype.Component
|
| /**
| * webSocket消息接收管理
| * @date 2024/7/19
| * @author feiyu02
| */
| @Component
| class WebSocketReceiver(private val bizLog: BizLog) {
|
| /**
| * 接收消息处理
| */
| fun onReceiveMsg(msg: String) {
| // debug
| if (msg == "test"){
| bizLog.info(WorkStreamLogInfo("8FAqSPnAA8ry4ExX", "朱正强", "在上海广发粉煤灰有限公司新增一个问题"))
| }
| }
| }
|
|