diff --git a/designer-realize/src/main/java/com/fr/design/mainframe/socketio/FineSocketInfoOperator.java b/designer-realize/src/main/java/com/fr/design/mainframe/socketio/FineSocketInfoOperator.java new file mode 100644 index 000000000..9108299c5 --- /dev/null +++ b/designer-realize/src/main/java/com/fr/design/mainframe/socketio/FineSocketInfoOperator.java @@ -0,0 +1,11 @@ +package com.fr.design.mainframe.socketio; + +import com.fr.web.WebSocketConfig; + +public class FineSocketInfoOperator implements SocketInfoOperator { + + @Override + public int getPort() { + return WebSocketConfig.getInstance().getPort(); + } +} diff --git a/designer-realize/src/main/java/com/fr/design/mainframe/socketio/SocketInfoOperator.java b/designer-realize/src/main/java/com/fr/design/mainframe/socketio/SocketInfoOperator.java new file mode 100644 index 000000000..338fb7fc5 --- /dev/null +++ b/designer-realize/src/main/java/com/fr/design/mainframe/socketio/SocketInfoOperator.java @@ -0,0 +1,5 @@ +package com.fr.design.mainframe.socketio; + +public interface SocketInfoOperator { + int getPort(); +}