Skip to content

Commit 3784da8

Browse files
committed
fix: web socket url generation
1 parent 33dc4fe commit 3784da8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/utils/DevServerPlugin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ class DevServerPlugin {
5151
port = `&port=${options.client.port}`;
5252
} else if (options.webSocketServer.options.port && !isSockJSType) {
5353
port = `&port=${options.webSocketServer.options.port}`;
54-
} else {
54+
} else if (options.port) {
5555
port = `&port=${options.port}`;
56+
} else {
57+
port = '';
5658
}
5759

5860
/** @type {string} */

0 commit comments

Comments
 (0)