diff --git a/samples/SocketsSample/wwwroot/hubs.html b/samples/SocketsSample/wwwroot/hubs.html index 50eb252d78..5594873ea7 100644 --- a/samples/SocketsSample/wwwroot/hubs.html +++ b/samples/SocketsSample/wwwroot/hubs.html @@ -52,20 +52,9 @@ + - - -

Long Polling

- -
- - -
- - - - diff --git a/samples/SocketsSample/wwwroot/sockets.html b/samples/SocketsSample/wwwroot/sockets.html new file mode 100644 index 0000000000..f6af38c423 --- /dev/null +++ b/samples/SocketsSample/wwwroot/sockets.html @@ -0,0 +1,47 @@ + + + + + + + +

Unknown Transport

+ +
+ + +
+ + + + + + + diff --git a/samples/SocketsSample/wwwroot/sse.html b/samples/SocketsSample/wwwroot/sse.html deleted file mode 100644 index 4a43947c95..0000000000 --- a/samples/SocketsSample/wwwroot/sse.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - -

Server Sent Events

- -
- - -
- - - - diff --git a/samples/SocketsSample/wwwroot/utils.js b/samples/SocketsSample/wwwroot/utils.js new file mode 100644 index 0000000000..ef155b5a2d --- /dev/null +++ b/samples/SocketsSample/wwwroot/utils.js @@ -0,0 +1,12 @@ +function getParameterByName(name, url) { + if (!url) { + url = window.location.href; + } + name = name.replace(/[\[\]]/g, "\\$&"); + var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), + results = regex.exec(url); + if (!results) return null; + if (!results[2]) return ''; + return decodeURIComponent(results[2].replace(/\+/g, " ")); +} + diff --git a/samples/SocketsSample/wwwroot/ws.html b/samples/SocketsSample/wwwroot/ws.html index 0a534b6469..8990fa27d3 100644 --- a/samples/SocketsSample/wwwroot/ws.html +++ b/samples/SocketsSample/wwwroot/ws.html @@ -5,8 +5,7 @@