Skip to content

Commit 231b6ed

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

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/Server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,6 +1608,7 @@ class Server {
16081608
});
16091609
}
16101610

1611+
// TODO: remove `--web-socket-server` in favor of `--web-socket-server-type`
16111612
createWebSocketServer() {
16121613
this.webSocketServer = new (this.getServerTransport())(this);
16131614
this.webSocketServer.implementation.on("connection", (client, request) => {

lib/options.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,9 +1033,6 @@
10331033
},
10341034
"WebSocketServerObject": {
10351035
"type": "object",
1036-
"cli": {
1037-
"exclude": true
1038-
},
10391036
"properties": {
10401037
"type": {
10411038
"anyOf": [
@@ -1052,7 +1049,10 @@
10521049
},
10531050
"options": {
10541051
"type": "object",
1055-
"additionalProperties": true
1052+
"additionalProperties": true,
1053+
"cli": {
1054+
"exclude": true
1055+
}
10561056
}
10571057
},
10581058
"additionalProperties": false

0 commit comments

Comments
 (0)