mirror of
https://github.com/langgenius/dify.git
synced 2026-04-13 22:57:26 +08:00
change default ws url
This commit is contained in:
parent
efa2307c73
commit
9519653422
@ -9,7 +9,7 @@ export class WebSocketClient {
|
||||
|
||||
constructor(config: WebSocketConfig = {}) {
|
||||
this.config = {
|
||||
url: config.url || process.env.NEXT_PUBLIC_SOCKET_URL || 'ws://api:5001',
|
||||
url: config.url || process.env.NEXT_PUBLIC_SOCKET_URL || 'wss://api:5001',
|
||||
transports: config.transports || ['websocket'],
|
||||
withCredentials: config.withCredentials !== false,
|
||||
...config,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user