Skip to content

Commit 48ed092

Browse files
authored
docs(examples): fix websocket example (#1170)
1 parent 0fe7c24 commit 48ed092

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/websocket/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h2>WebSocket demo</h2>
2323

2424
<p>
2525
Proxy <code id="codeblock-ws-location">ws://localhost:3000</code>
26-
<code>ws://ws.ifelse.io</code>
26+
<code>ws://echo.websocket.org</code>
2727
</p>
2828

2929
<fieldset id="configuration">

examples/websocket/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { createProxyMiddleware } = require('../../dist'); // require('http-proxy-
88
* Configure proxy middleware
99
*/
1010
const wsProxy = createProxyMiddleware({
11-
target: 'http://ws.ifelse.io',
11+
target: 'https://echo.websocket.org',
1212
// pathRewrite: {
1313
// '^/websocket' : '/socket', // rewrite path.
1414
// '^/removepath' : '' // remove path.

0 commit comments

Comments
 (0)