|
@@ -30,7 +30,7 @@ public class WebSocketConnent {
|
|
|
}
|
|
|
|
|
|
public void connect() throws Exception{
|
|
|
- while (true){
|
|
|
+ /*while (true){
|
|
|
try {
|
|
|
System.out.println("正在" + (this.WS_CONNENT_NUM == 0 ? "" : ("第" + this.WS_CONNENT_NUM + "次")) + "连接WebSocket[" + this.WS_URL_NAME + "]......");
|
|
|
|
|
@@ -74,6 +74,6 @@ public class WebSocketConnent {
|
|
|
System.out.println("连接[" + this.WS_URL_NAME + "]异常," + this.WS_CONNENT_NUM + "秒后尝试重新连接:" + e.getMessage());
|
|
|
Thread.sleep(this.WS_CONNENT_NUM * 1000);
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
}
|