File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
# CLI: Web Socket URL
2
2
3
3
``` 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
5
5
```
6
6
7
- _ NOTE: replace ` <insert local ip > ` with your local IP Address._
7
+ _ NOTE: replace ` <insert-host > ` with your local IP Address._
8
8
9
9
In order to make the server publicly accessible the client needs to know with
10
10
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
12
12
override this.
13
13
14
14
## What Should Happen
Original file line number Diff line number Diff line change 4
4
npx webpack serve
5
5
```
6
6
7
- _ NOTE: replace ` <insert local ip> ` with your local IP Address._
8
-
9
7
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 ` ).
11
9
12
10
## What Should Happen
13
11
You can’t perform that action at this time.
0 commit comments