Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
oxogenesis authored Feb 14, 2020
1 parent acda969 commit 00f94b7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@ const MessageCode = {
}

const ObjectType = {
"Bulletin": 201,
"GroupManage": 202,
"GroupMessage": 203
"Bulletin": 111,
"BulletinFile": 112,

"GroupManage": 131,
"GroupMessage": 132
}

function strServerMessage(msgCode) {
Expand Down Expand Up @@ -210,7 +212,7 @@ function handleClientMessage(message, json) {
if (json["To"] != null && ClientConns[json["To"]] != null && ClientConns[json["To"]].readyState == WebSocket.OPEN) {
ClientConns[json["To"]].send(message)
//cache bulletin
if (json["Action"] == ActionCode["ObjectResponse"] && json["ObjectType"] == ObjectType["Bulletin"]) {
if (json["Action"] == ActionCode["ObjectResponse"] && json["Object"]["ObjectType"] == ObjectType["Bulletin"]) {
//console.log(`###################LOG################### Client Message:`)
//console.log(message)
let timestamp = Date.now()
Expand Down

0 comments on commit 00f94b7

Please sign in to comment.