Skip to content

Commit 50bf855

Browse files
committed
Fixed websocket connection
1 parent 43fa8ff commit 50bf855

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Server/build/unity/mcpUnity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class McpUnity {
4141
// Close any existing connection
4242
this.disconnect();
4343
return new Promise((resolve, reject) => {
44-
const wsUrl = `ws://localhost:${this.port}`;
44+
const wsUrl = `ws://localhost:${this.port}/McpUnity`;
4545
this.logger.debug(`Connecting to ${wsUrl}...`);
4646
try {
4747
this.ws = new WebSocket(wsUrl);

Server/src/unity/mcpUnity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class McpUnity {
7373
this.disconnect();
7474

7575
return new Promise<void>((resolve, reject) => {
76-
const wsUrl = `ws://localhost:${this.port}`;
76+
const wsUrl = `ws://localhost:${this.port}/McpUnity`;
7777
this.logger.debug(`Connecting to ${wsUrl}...`);
7878

7979
try {

0 commit comments

Comments
 (0)