mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-05-10 14:58:27 +00:00
bugfix for websocket, update logo
This commit is contained in:
parent
fa4ddca2ee
commit
2a42ff6e08
@ -17,7 +17,7 @@ A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.
|
||||
|
||||
[中文wiki - 代理服务器的新轮子](https://github.com/alibaba/anyproxy/wiki/%E4%BB%A3%E7%90%86%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%9A%84%E6%96%B0%E8%BD%AE%E5%AD%90%EF%BC%9Aanyproxy) ,介绍我们为什么要再造一个代理服务器,anyproxy开放式的设计可以解决什么样的问题。
|
||||
|
||||

|
||||
<img src="http://gtms04.alicdn.com/tps/i4/TB1XfxDHpXXXXXpapXX20ySQVXX-512-512.png" width="250" height="250" alt="anyproxy logo" />
|
||||
|
||||
特性
|
||||
------------
|
||||
|
@ -115,7 +115,11 @@ function proxyWebServer(port,webSocketPort,proxyConfigPort,ruleSummary,ipAddress
|
||||
wss.on("connection",function(ws){});
|
||||
wss.broadcast = function(data) {
|
||||
for(var i in this.clients){
|
||||
this.clients[i].send(data);
|
||||
try{
|
||||
this.clients[i].send(data);
|
||||
}catch(e){
|
||||
console.log("websocket failed to send data, " + e);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user