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