Skip to content

Commit 592cbc0

Browse files
authored
Merge pull request #4 from MineplayMC/copilot/fix-websocket-functionality
Fix WebSocket URL using wrong config field (`baseUrl` instead of `websocketUrl`)
2 parents 3f0421f + 71d0e29 commit 592cbc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server/routes/atlas.route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ const getWebSocketToken = os
654654
return {
655655
token: tokenResponse.data.token,
656656
expiresAt: tokenResponse.data.expiresAt,
657-
wsUrl: `${configManager.getAtlasConfig()?.baseUrl!.replace(/^http/, "ws")}/api/v1/servers/${serverId}/ws`,
657+
wsUrl: `${configManager.getAtlasConfig()?.websocketUrl}/api/v1/servers/${serverId}/ws`,
658658
};
659659
});
660660

0 commit comments

Comments
 (0)