Skip to content

Commit 2cbc69f

Browse files
committed
feat: add --web-socket-server-type
1 parent 231b6ed commit 2cbc69f

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ Options:
111111
--client-web-socket-url-password <value> Tells clients connected to devServer to use the provided password to authenticate.
112112
--web-socket-server <value> Allows to set web socket server and options (by default 'ws').
113113
--no-web-socket-server Negative 'web-socket-server' option.
114+
--web-socket-server-type <value> Allows to set web socket server and options (by default 'ws').
114115
--compress Enables gzip compression for everything served.
115116
--no-compress Disables gzip compression for everything served.
116117
--history-api-fallback Allows to proxy requests through a specified index page (by default 'index.html'), useful for Single Page Applications that utilise the HTML5 History API.

bin/cli-flags.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,30 @@ module.exports = {
349349
simpleType: "string",
350350
multiple: false,
351351
},
352+
"web-socket-server-type": {
353+
configs: [
354+
{
355+
description:
356+
"Allows to set web socket server and options (by default 'ws').",
357+
multiple: false,
358+
path: "webSocketServer.type",
359+
type: "enum",
360+
values: ["sockjs", "ws"],
361+
},
362+
{
363+
description:
364+
"Allows to set web socket server and options (by default 'ws').",
365+
multiple: false,
366+
path: "webSocketServer.type",
367+
type: "string",
368+
},
369+
],
370+
371+
description:
372+
"Allows to set web socket server and options (by default 'ws').",
373+
simpleType: "string",
374+
multiple: false,
375+
},
352376
compress: {
353377
configs: [
354378
{

0 commit comments

Comments
 (0)