Skip to content

Commit 186b3a6

Browse files
committed
Update WebSocket sample with new SockJS CDN
Closes gh-1740
1 parent 160d609 commit 186b3a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-boot-samples/spring-boot-sample-websocket/src/main/resources/static/echo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
margin: 0;
5050
}
5151
</style>
52-
<script src="http://cdn.sockjs.org/sockjs-0.3.min.js"></script>
52+
<script src="https://cdn.jsdelivr.net/sockjs/0.3.4/sockjs.min.js"></script>
5353
<script type="text/javascript">
5454
var ws = null;
5555

spring-boot-samples/spring-boot-sample-websocket/src/main/resources/static/snake.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@
4949
margin: 0;
5050
}
5151
</style>
52-
<script src="http://cdn.sockjs.org/sockjs-0.3.min.js"></script>
52+
<script src="https://cdn.jsdelivr.net/sockjs/0.3.4/sockjs.min.js"></script>
5353
</head>
5454
<body>
5555
<noscript><h2 style="color: #ff0000">Seems your browser doesn't support Javascript! Websockets rely on Javascript being enabled. Please enable
5656
Javascript and reload this page!</h2></noscript>
57-
57+
5858
<div style="float: left">
5959
<canvas id="playground" width="640" height="480"></canvas>
6060
</div>

0 commit comments

Comments
 (0)