change default ws url

This commit is contained in:
hjlarry 2025-09-19 22:18:01 +08:00
parent 068fa3d0e3
commit efa2307c73
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ export class WebSocketClient {
constructor(config: WebSocketConfig = {}) {
this.config = {
url: config.url || process.env.NEXT_PUBLIC_SOCKET_URL || 'ws://localhost:5001',
url: config.url || process.env.NEXT_PUBLIC_SOCKET_URL || 'ws://api:5001',
transports: config.transports || ['websocket'],
withCredentials: config.withCredentials !== false,
...config,