|
|
|
@ -34,6 +34,7 @@ public class WebSocketComponent implements CommandLineRunner {
|
|
|
|
|
SyncDataSetEntity syncDataSetEntity = syncDataSetDao.selectSet();
|
|
|
|
|
String ip = syncDataSetEntity.getSyncIp();
|
|
|
|
|
ip = ip.replace("http://", "");
|
|
|
|
|
ip = ip.replace("/SP_SYNC_SERVER", "");
|
|
|
|
|
try {
|
|
|
|
|
SpsWebSocketClient client = new SpsWebSocketClient("ws://" + ip + "/sps/web/sync/2/" + socketToken);
|
|
|
|
|
client.setSocketMsgService(socketMsgService);
|
|
|
|
|