|
|
@ -55,6 +55,8 @@ import java.awt.BorderLayout; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Cursor; |
|
|
|
import java.awt.Cursor; |
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
|
|
|
|
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.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
@ -137,6 +139,8 @@ 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.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(); |
|
|
|