sqlcommand.CommandText ="select distinct opcode, direction from packets order by opcode , direction";varreader = sqlcommand.ExecuteReader();while(reader.Read()) {varopcode = (uint)reader.GetInt32(0);vardirection = (byte)reader.GetInt32(1);if(!clientBuildOpcodes.OpcodeList.Exists(t => t.Opc...
clients.push(ws)// DBからメッセージを 初期 limit件 降順で取り出してクライアントへ送信するletsql_select='SELECT * FROM'+tableName+'ORDER BY ID DESC LIMIT'+limit+';'letres:any=doQuery(db,sql_select);// データ配列を接続してきたクライアントへ返すconstdata:MsgData={head:{type:...