mirror of
https://github.com/avwo/whistle.git
synced 2026-10-22 09:34:35 +08:00
14 lines
329 B
JavaScript
14 lines
329 B
JavaScript
var proxy = require('../lib/proxy');
|
|
var socketMgr = proxy.socketMgr;
|
|
|
|
module.exports = function(req, res) {
|
|
var result = {};
|
|
req.body.idList.forEach(function(reqId) {
|
|
result[reqId] = socketMgr.getData(reqId);
|
|
});
|
|
req.body.frames.forEach(function(frame) {
|
|
proxy.emit('frame', frame);
|
|
});
|
|
res.json(result);
|
|
};
|