Update WebSocket sample with new SockJS CDN

Closes gh-1740
pull/2035/head
Andy Wilkinson 10 years ago
parent 160d609bd4
commit 186b3a66e3

@ -49,7 +49,7 @@
margin: 0; margin: 0;
} }
</style> </style>
<script src="http://cdn.sockjs.org/sockjs-0.3.min.js"></script> <script src="https://cdn.jsdelivr.net/sockjs/0.3.4/sockjs.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var ws = null; var ws = null;

@ -49,12 +49,12 @@
margin: 0; margin: 0;
} }
</style> </style>
<script src="http://cdn.sockjs.org/sockjs-0.3.min.js"></script> <script src="https://cdn.jsdelivr.net/sockjs/0.3.4/sockjs.min.js"></script>
</head> </head>
<body> <body>
<noscript><h2 style="color: #ff0000">Seems your browser doesn't support Javascript! Websockets rely on Javascript being enabled. Please enable <noscript><h2 style="color: #ff0000">Seems your browser doesn't support Javascript! Websockets rely on Javascript being enabled. Please enable
Javascript and reload this page!</h2></noscript> Javascript and reload this page!</h2></noscript>
<div style="float: left"> <div style="float: left">
<canvas id="playground" width="640" height="480"></canvas> <canvas id="playground" width="640" height="480"></canvas>
</div> </div>

Loading…
Cancel
Save