We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01620b1 commit ed3b1deCopy full SHA for ed3b1de
packages/core/src/node/ws.ts
@@ -26,9 +26,9 @@ const ANONYMOUS_SCOPE = 'vite:anonymous:'
26
27
export async function createWsServer(options: CreateWsServerOptions) {
28
const rpcHost = options.context.rpc as unknown as RpcFunctionsHost
29
- const port = options.portWebSocket ?? await getPort({ port: 7812, random: true })!
30
const host = options.hostWebSocket ?? 'localhost'
31
const https = options.context.viteConfig.server.https
+ const port = options.portWebSocket ?? await getPort({ port: 7812, host, random: true })!
32
33
const wsClients = new Set<WebSocket>()
34
0 commit comments