Skip to content

Commit

Permalink
feat: update debug options
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathannorris committed Dec 13, 2024
1 parent c647b5e commit f59c768
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sdk/react-native/src/ReactNativeSSEConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ export class ReactNativeSSEConnection implements SSEConnectionInterface {
private openConnection() {
this.connection = new EventSource(this.url, {
debug: false,
// start connection immediately
timeoutBeforeConnection: 0,
// disable request timeout so connections are kept open
timeout: 0,
// enable withCredentials so we can send cookies
withCredentials: true,
})

this.connection.addEventListener('message', (event) => {
Expand Down

0 comments on commit f59c768

Please sign in to comment.