Skip to content

Commit f5ad360

Browse files
committed
chore: remove realtime references
1 parent 962b89b commit f5ad360

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

templates/node/src/client.ts.twig

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class Client {
3636

3737
config = {
3838
endpoint: '{{ spec.endpoint }}',
39-
endpointRealtime: '',
4039
selfSigned: false,
4140
{%~ for header in spec.global.headers %}
4241
{{ header.key | caseLower }}: '',
@@ -64,20 +63,6 @@ class Client {
6463
*/
6564
setEndpoint(endpoint: string): this {
6665
this.config.endpoint = endpoint;
67-
this.config.endpointRealtime = this.config.endpointRealtime || this.config.endpoint.replace('https://', 'wss://').replace('http://', 'ws://');
68-
69-
return this;
70-
}
71-
72-
/**
73-
* Set Realtime Endpoint
74-
*
75-
* @param {string} endpointRealtime
76-
*
77-
* @returns {this}
78-
*/
79-
setEndpointRealtime(endpointRealtime: string): this {
80-
this.config.endpointRealtime = endpointRealtime;
8166

8267
return this;
8368
}

0 commit comments

Comments
 (0)