Browse Source

Pull request #7099: REPORT-64095 websocket频繁出现断开又连上问题

Merge in DESIGN/design from ~HADES/design:final/10.0 to final/10.0

* commit 'c6677e6906cb0f518aa8d76e56fb18e196a88928':
  REPORT-64095 websocket频繁出现断开又连上问题
final/10.0
Hades 3 years ago
parent
commit
8a015c7039
  1. 3
      designer-realize/src/main/java/com/fr/design/mainframe/socketio/DesignerSocketIO.java

3
designer-realize/src/main/java/com/fr/design/mainframe/socketio/DesignerSocketIO.java

@ -34,6 +34,8 @@ import io.socket.client.IO;
import io.socket.client.Socket;
import io.socket.emitter.Emitter;
import io.socket.engineio.client.transports.Polling;
import io.socket.engineio.client.transports.WebSocket;
import java.io.File;
import java.io.FileInputStream;
import java.security.KeyStore;
@ -116,6 +118,7 @@ public class DesignerSocketIO {
private static IO.Options createOptions() {
IO.Options options = new IO.Options();
options.path = WebSocketConfig.getInstance().getSocketContext();
options.transports = new String[]{WebSocket.NAME, Polling.NAME};
try {
if (ComparatorUtils.equals(currentProtocol, HTTPS)) {
options.sslContext = getSSLContext();

Loading…
Cancel
Save