Skip to content

Commit

Permalink
dev: Fix verbose stream closure
Browse files Browse the repository at this point in the history
  • Loading branch information
kschiffer committed Dec 12, 2023
1 parent 30dc2f1 commit c4164c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/js/src/api/stream/subscribeToWebSocketStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { notify, EVENTS, MESSAGE_TYPES } from './shared'
const wsInstances = {}
let subscriptions = {}
const initialListeners = Object.values(EVENTS).reduce((acc, curr) => ({ ...acc, [curr]: {} }), {})
let closeRequested = false

/**
* Opens a new stream.
Expand Down Expand Up @@ -68,7 +69,6 @@ export default async (
type: MESSAGE_TYPES.UNSUBSCRIBE,
id: subscriptionId,
})
let closeRequested = false
const url = baseUrl + endpoint

await Promise.race([
Expand Down

0 comments on commit c4164c6

Please sign in to comment.