@@ -189,12 +189,11 @@ exports[`options validate should throw an error on the "client" option with '{"w
189189 -> Read more at https://webpack.js.org/configuration/dev-server/#devserverclient
190190 Details:
191191 * options.client.webSocketTransport should be one of these:
192- "sockjs" | " ws" | non-empty string
192+ "ws" | non-empty string
193193 -> Allows to set custom web socket transport to communicate with dev server.
194194 -> Read more at https://webpack.js.org/configuration/dev-server/#websockettransport
195195 Details:
196- * options.client.webSocketTransport should be one of these:
197- "sockjs" | "ws"
196+ * options.client.webSocketTransport should be "ws".
198197 * options.client.webSocketTransport should be a non-empty string."
199198`;
200199
@@ -787,48 +786,45 @@ exports[`options validate should throw an error on the "webSocketServer" option
787786exports[`options validate should throw an error on the "webSocketServer" option with '{"type":false}' value 1`] = `
788787"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
789788 - options.webSocketServer should be one of these:
790- false | "sockjs" | " ws" | non-empty string | function | object { type?, options? }
789+ false | "ws" | non-empty string | function | object { type?, options? }
791790 -> Allows to set web socket server and options (by default 'ws').
792791 -> Read more at https://webpack.js.org/configuration/dev-server/#devserverwebsocketserver
793792 Details:
794793 * options.webSocketServer.type should be one of these:
795- "sockjs" | " ws" | non-empty string | function
794+ "ws" | non-empty string | function
796795 Details:
797- * options.webSocketServer.type should be one of these:
798- "sockjs" | "ws"
796+ * options.webSocketServer.type should be "ws".
799797 * options.webSocketServer.type should be a non-empty string.
800798 * options.webSocketServer.type should be an instance of function."
801799`;
802800
803801exports[`options validate should throw an error on the "webSocketServer" option with '{"type":true}' value 1`] = `
804802"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
805803 - options.webSocketServer should be one of these:
806- false | "sockjs" | " ws" | non-empty string | function | object { type?, options? }
804+ false | "ws" | non-empty string | function | object { type?, options? }
807805 -> Allows to set web socket server and options (by default 'ws').
808806 -> Read more at https://webpack.js.org/configuration/dev-server/#devserverwebsocketserver
809807 Details:
810808 * options.webSocketServer.type should be one of these:
811- "sockjs" | " ws" | non-empty string | function
809+ "ws" | non-empty string | function
812810 Details:
813- * options.webSocketServer.type should be one of these:
814- "sockjs" | "ws"
811+ * options.webSocketServer.type should be "ws".
815812 * options.webSocketServer.type should be a non-empty string.
816813 * options.webSocketServer.type should be an instance of function."
817814`;
818815
819816exports[`options validate should throw an error on the "webSocketServer" option with 'null' value 1`] = `
820817"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
821818 - options.webSocketServer should be one of these:
822- false | "sockjs" | " ws" | non-empty string | function | object { type?, options? }
819+ false | "ws" | non-empty string | function | object { type?, options? }
823820 -> Allows to set web socket server and options (by default 'ws').
824821 -> Read more at https://webpack.js.org/configuration/dev-server/#devserverwebsocketserver
825822 Details:
826823 * options.webSocketServer should be one of these:
827- false | "sockjs" | " ws"
824+ false | "ws"
828825 Details:
829826 * options.webSocketServer should be false.
830- * options.webSocketServer should be one of these:
831- "sockjs" | "ws"
827+ * options.webSocketServer should be "ws".
832828 * options.webSocketServer should be a non-empty string.
833829 * options.webSocketServer should be an instance of function.
834830 * options.webSocketServer should be an object:
@@ -838,16 +834,15 @@ exports[`options validate should throw an error on the "webSocketServer" option
838834exports[`options validate should throw an error on the "webSocketServer" option with 'true' value 1`] = `
839835"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
840836 - options.webSocketServer should be one of these:
841- false | "sockjs" | " ws" | non-empty string | function | object { type?, options? }
837+ false | "ws" | non-empty string | function | object { type?, options? }
842838 -> Allows to set web socket server and options (by default 'ws').
843839 -> Read more at https://webpack.js.org/configuration/dev-server/#devserverwebsocketserver
844840 Details:
845841 * options.webSocketServer should be one of these:
846- false | "sockjs" | " ws"
842+ false | "ws"
847843 Details:
848844 * options.webSocketServer should be false.
849- * options.webSocketServer should be one of these:
850- "sockjs" | "ws"
845+ * options.webSocketServer should be "ws".
851846 * options.webSocketServer should be a non-empty string.
852847 * options.webSocketServer should be an instance of function.
853848 * options.webSocketServer should be an object:
0 commit comments