Skip to content

Commit 88699da

Browse files
committed
【update】升级iserver ws地址 review by liqain
1 parent f6ce6e1 commit 88699da

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

examples/component/components_dataflow_react.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<div id="main"></div>
2727
<script type="text/babel">
2828
var host = window.isLocal ? window.server : 'https://iserver.supermap.io';
29-
var wsHost = 'ws:\//' + (window.isLocal ? document.location.hostname + ':8800' : 'iclsvrws.supermap.io');
29+
var wsHost = 'wss:\//' + (window.isLocal ? document.location.hostname + ':8800' : 'iclsvrws.supermap.io');
3030
var attribution =
3131
"<a href='https://www.mapbox.com/about/maps/' target='_blank'>© Mapbox </a>" +
3232
" with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
@@ -67,7 +67,7 @@
6767
};
6868

6969
SuperMap.SecurityManager.registerToken(
70-
'ws://iclsvrws.supermap.io/iserver/services/dataflowTest/dataflow',
70+
'wss://iclsvrws.supermap.io/iserver/services/dataflowTest/dataflow',
7171
window.exampleToken
7272
);
7373
// 模拟 dataflow 实时数据

examples/component/components_dataflow_vue.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
</div>
3232
<script>
3333
var host = window.isLocal ? window.server : "https://iserver.supermap.io";
34-
var wsHost = "ws:\//" + (window.isLocal ? document.location.hostname + ":8800" : "iclsvrws.supermap.io");
34+
var wsHost = "wss:\//" + (window.isLocal ? document.location.hostname + ":8800" : "iclsvrws.supermap.io");
3535
var attribution =
3636
"<a href='https://www.mapbox.com/about/maps/' target='_blank'>© Mapbox </a>" +
3737
" with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
3838
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> ";
3939
SuperMap.SecurityManager.registerToken(
40-
"ws://iclsvrws.supermap.io/iserver/services/dataflowTest/dataflow",
40+
"wss://iclsvrws.supermap.io/iserver/services/dataflowTest/dataflow",
4141
window.exampleToken
4242
);
4343
// 模拟 dataflow 实时数据

examples/leaflet/dataFlowService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<script type="text/javascript" src="../../dist/leaflet/include-leaflet.js"></script>
1616
<script type="text/javascript">
1717
var host = window.isLocal ? window.server : "https://iserver.supermap.io";
18-
var wsHost = "ws:\//" + (window.isLocal ? document.location.hostname + ":8800" : "iclsvrws.supermap.io");
18+
var wsHost = "wss:\//" + (window.isLocal ? document.location.hostname + ":8800" : "iclsvrws.supermap.io");
1919
var map,
2020
urlMap = host + "/iserver/services/map-china400/rest/maps/China",
2121
urlQuery = host + "/iserver/services/map-china400/rest/maps/China_4326",

examples/leaflet/dataFlowService_mapv.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<script type="text/javascript" include='mapv' src="../../dist/leaflet/include-leaflet.js"></script>
1616
<script type="text/javascript">
1717
var host = window.isLocal ? window.server : "https://iserver.supermap.io";
18-
var wsHost = "ws:\//" + (window.isLocal ? document.location.hostname + ":8800" : "iclsvrws.supermap.io");
18+
var wsHost = "wss:\//" + (window.isLocal ? document.location.hostname + ":8800" : "iclsvrws.supermap.io");
1919
var map,
2020
urlMap = host + "/iserver/services/map-china400/rest/maps/ChinaDark",
2121
urlQuery = host + "/iserver/services/map-china400/rest/maps/China_4326",

examples/mapboxgl/dataFlowService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
'/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?prjCoordSys={"epsgCode":3857}&z={z}&x={x}&y={y}',
2525
urlQuery = host + "/iserver/services/map-china400/rest/maps/China_4326";
2626

27-
wsHost = "ws:\//" + (window.isLocal ? document.location.hostname + ":8800" : "iclsvrws.supermap.io");
27+
wsHost = "wss:\//" + (window.isLocal ? document.location.hostname + ":8800" : "iclsvrws.supermap.io");
2828

2929
var urlDataFlow = wsHost + "/iserver/services/dataflowTest/dataflow";
3030
var attribution = "<a href='https://www.mapbox.com/about/maps/' target='_blank'>© Mapbox </a>" +

examples/openlayers/dataFlowService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
});
6666
var resultLayer,
6767
urlQuery = (window.isLocal ? window.server : "https://iserver.supermap.io") + "/iserver/services/map-china400/rest/maps/China_4326",
68-
wsHost = "ws:\//" + (window.isLocal ? document.location.hostname + ":8800" : "iclsvrws.supermap.io");
68+
wsHost = "wss:\//" + (window.isLocal ? document.location.hostname + ":8800" : "iclsvrws.supermap.io");
6969
var urlDataFlow = wsHost + "/iserver/services/dataflowTest/dataflow";
7070
var timer, featureResult, dataFlowBroadcast, source;
7171
new ol.supermap.MapService(urlQuery).getMapInfo(function(serviceResult) {

0 commit comments

Comments
 (0)