mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
chore: change app version
This commit is contained in:
@@ -87,5 +87,5 @@ export function getStrangerByUin(uin: string) {
|
||||
}
|
||||
}
|
||||
|
||||
export const version = "v3.3.1"
|
||||
export const version = "v3.4.0"
|
||||
export const heartInterval = 15000 // 毫秒
|
@@ -266,9 +266,16 @@ function initReverseWebsocket() {
|
||||
}
|
||||
}
|
||||
|
||||
export function wsReply(wsClient: websocket.WebSocket | ReconnectingWebsocket, data: OB11Return<any> | PostMsgType) {
|
||||
export function wsReply(wsClient: websocket.WebSocket | ReconnectingWebsocket, data: OB11WebsocketResponse | PostMsgType) {
|
||||
try {
|
||||
wsClient.send(JSON.stringify(data))
|
||||
let packet = Object.assign({
|
||||
echo: ""
|
||||
}, data);
|
||||
if (!packet.echo) {
|
||||
packet.echo = "";
|
||||
}
|
||||
|
||||
wsClient.send(JSON.stringify(packet))
|
||||
log("ws 消息上报", data)
|
||||
} catch (e) {
|
||||
log("websocket 回复失败", e)
|
||||
|
Reference in New Issue
Block a user