mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-04 21:39:04 +00:00
change: discard decrpecated GLOBAL
This commit is contained in:
@@ -24,7 +24,7 @@ function resToMsg(msg,cb){
|
||||
|
||||
if(jsonData.type == "reqBody" && jsonData.id){
|
||||
result.type = "body";
|
||||
GLOBAL.recorder.getBody(jsonData.id, function(err, data){
|
||||
global.recorder.getBody(jsonData.id, function(err, data){
|
||||
if(err){
|
||||
result.content = {
|
||||
id : null,
|
||||
@@ -74,7 +74,7 @@ function wsServer(config){
|
||||
|
||||
wss.on("close",function(){});
|
||||
|
||||
GLOBAL.recorder.on("update",function(data){
|
||||
global.recorder.on("update",function(data){
|
||||
try{
|
||||
wss && wss.broadcast({
|
||||
type : "update",
|
||||
@@ -95,4 +95,4 @@ wsServer.prototype.closeAll = function(){
|
||||
self.wss.close();
|
||||
}
|
||||
|
||||
module.exports = wsServer;
|
||||
module.exports = wsServer;
|
||||
|
||||
Reference in New Issue
Block a user