Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathannorris committed Dec 12, 2024
1 parent 8322f21 commit 99ca602
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/shared/sse-connection/src/lib/SSEConnection.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { DVCLogger } from '@devcycle/types'
import EventSource from 'eventsource'

export type SSEConnectionFunctions = {
type SSEConnectionFunctions = {
onMessage: (message: unknown) => void
onOpen: () => void
onConnectionError: () => void
Expand Down
1 change: 0 additions & 1 deletion sdk/js/src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,6 @@ export class DevCycleClient<
}

// Update the streaming connection URL if it has changed (for ex. if the current user has targeting overrides)
this.logger.debug(`Config SSE URL: ${config?.sse?.url}`)
if (config?.sse?.url) {
if (!this.streamingConnection) {
if (!this.options.disableRealtimeUpdates) {
Expand Down
3 changes: 1 addition & 2 deletions sdk/react-native/src/ReactNativeSSEConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ export class ReactNativeSSEConnection implements SSEConnectionInterface {
}

private openConnection() {
this.logger.debug('ReactNativeSSEConnection opening connection, test 2')
this.connection = new EventSource(this.url, {
debug: false
debug: false,
})

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

0 comments on commit 99ca602

Please sign in to comment.