Skip to content

Commit 98f3b40

Browse files
authored
fix: rename default ipc socket (#233)
1 parent 741f0c8 commit 98f3b40

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ class Server<
10081008
if (typeof options.ipc === 'boolean') {
10091009
const isWindows = process.platform === 'win32';
10101010
const pipePrefix = isWindows ? '\\\\.\\pipe\\' : os.tmpdir();
1011-
const pipeName = 'webpack-dev-server.sock';
1011+
const pipeName = 'rspack-dev-server.sock';
10121012

10131013
options.ipc = path.join(pipePrefix, pipeName);
10141014
}

tests/e2e/ipc.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ describe('web socket server URL', () => {
116116
it(`should work with the "ipc" option using "string" value ("${webSocketServer}")`, async () => {
117117
const isWindows = process.platform === 'win32';
118118
const pipePrefix = isWindows ? '\\\\.\\pipe\\' : os.tmpdir();
119-
const pipeName = `webpack-dev-server.${process.pid}-1.sock`;
119+
const pipeName = `rspack-dev-server.${process.pid}-1.sock`;
120120
const ipc = path.join(pipePrefix, pipeName);
121121

122122
const devServerHost = '127.0.0.1';
@@ -220,7 +220,7 @@ describe('web socket server URL', () => {
220220
const isWindows = process.platform === 'win32';
221221
const localRelative = path.relative(process.cwd(), `${os.tmpdir()}/`);
222222
const pipePrefix = isWindows ? '\\\\.\\pipe\\' : localRelative;
223-
const pipeName = `webpack-dev-server.${process.pid}-2.sock`;
223+
const pipeName = `rspack-dev-server.${process.pid}-2.sock`;
224224
const ipc = path.join(pipePrefix, pipeName);
225225

226226
const ipcServer = await new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)