Skip to content

Commit 5c87961

Browse files
authored
docs: update client.webSocketURL examples (#3432)
1 parent 7af0f8d commit 5c87961

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

examples/cli/web-socket-url-cli/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# CLI: Web Socket URL
22

33
```console
4-
npx webpack serve --open-target --host 0.0.0.0 --web-socket-url <insert-host>:8080
4+
npx webpack serve --open-target --host 0.0.0.0 --client-web-socket-url ws://<insert-host>:8080
55
```
66

7-
_NOTE: replace `<insert local ip>` with your local IP Address._
7+
_NOTE: replace `<insert-host>` with your local IP Address._
88

99
In order to make the server publicly accessible the client needs to know with
1010
what host to connect to the server. If `--host 0.0.0.0` is given, the client
11-
would try to connect to `0.0.0.0`. With the `--web-socket-url` options it is possible to
11+
would try to connect to `0.0.0.0`. With the `--client-web-socket-url` options it is possible to
1212
override this.
1313

1414
## What Should Happen

examples/cli/web-socket-url/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
npx webpack serve
55
```
66

7-
_NOTE: replace `<insert local ip>` with your local IP Address._
8-
97
You're now able to explicitly define the protocol used with the `client.webSocketURL` option
10-
(have a look to the config provided in `webpack.config.js`).
8+
(have a look at the config provided in `webpack.config.js`).
119

1210
## What Should Happen
1311

0 commit comments

Comments
 (0)