Skip to content

Commit 2bbc569

Browse files
committed
use endpointRealtime
1 parent 2c4b18d commit 2bbc569

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

templates/web/src/services/realtime.ts.twig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ export class Realtime {
105105
queryParams += `&channels[]=${encodeURIComponent(channel)}`;
106106
}
107107

108-
const endpoint = this.client.config.endpoint || '';
108+
const endpoint =
109+
this.client.config.endpointRealtime !== ''
110+
? this.client.config.endpointRealtime
111+
: this.client.config.endpoint || '';
109112
const realtimeEndpoint = endpoint
110113
.replace('https://', 'wss://')
111114
.replace('http://', 'ws://');

0 commit comments

Comments
 (0)