Skip to content

Commit b90c448

Browse files
Update comments
1 parent ebcf3da commit b90c448

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sync/streaming/SSEClient/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ export class SSEClient implements ISSEClient {
8383
this.connection = new this.eventSource!(
8484
// For client-side SDKs, metadata is passed as query param to avoid CORS issues and because native EventSource implementations in browsers do not support headers
8585
isServerSide ? url : url + `&SplitSDKVersion=${this.headers.SplitSDKVersion}&SplitSDKClientKey=${this.headers.SplitSDKClientKey}`,
86-
// For server-side SDKs, metadata is passed via headers. For NodeJS, the SDK uses an EventSource that support headers
86+
// For server-side SDKs, metadata is passed via headers
8787
objectAssign(
8888
isServerSide ?
8989
{ headers: decorateHeaders(this.settings, this.headers) } :
9090
this.settings.sync.requestOptions?.getHeaderOverrides ?
91-
{ headers: decorateHeaders(this.settings, {}) } : // Assuming the user is providing a window.EventSource polyfill that supports headers
91+
{ headers: decorateHeaders(this.settings, {}) } : // User must provide a window.EventSource polyfill that supports headers
9292
{},
9393
this.options
9494
)

0 commit comments

Comments
 (0)