优化网格策略
This commit is contained in:
parent
1e38b457f1
commit
8e7e1075f7
@ -13,9 +13,9 @@ import java.net.Proxy;
|
||||
public class CommonConstant {
|
||||
|
||||
/** 全局 HTTP 代理 */
|
||||
public static final Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", 7897));
|
||||
// public static final Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", 7897));
|
||||
|
||||
public static final HttpClient httpClient = HttpClient.builder().proxy(proxy).build();
|
||||
public static final HttpClient httpClient = HttpClient.builder().build();
|
||||
|
||||
public static final WebSocketManager webSocketManager = new WebSocketManager(httpClient);
|
||||
|
||||
|
||||
@ -156,7 +156,7 @@ public class AutoGridStrategy extends BaseStrategy {
|
||||
|
||||
@Override
|
||||
public void onMessage(String connectionId, String message) {
|
||||
logger.debug("WebSocket 收到消息:{}", message);
|
||||
// logger.debug("WebSocket 收到消息:{}", message);
|
||||
if ("pong".equals(message)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user