We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this.client.connect(this.props.headers, (frame) => { console.log("frame", frame) this.setState({ connected: true }) this.props.topics.forEach((topic) => { this._subscribe(topic) }) this.props.onConnect(frame) }, (error) => { if (error) { if (Object.keys(this.props).includes('onConnectFailure')) { this.props.onConnectFailure(error) } else { this._log(error.stack) } } if (this.state.connected) { this._cleanUp() // onDisconnect should be called only once per connect this.props.onDisconnect() } if (this.props.autoReconnect && !this.state.explicitDisconnect) { this._timeoutId = setTimeout(this.connect, this.props.getRetryInterval(this.retryCount++)) } })**
The text was updated successfully, but these errors were encountered:
No branches or pull requests
**_Expected Change:
this.client.connect(this.props.headers, (frame) => {
console.log("frame", frame)
this.setState({ connected: true })
this.props.topics.forEach((topic) => {
this._subscribe(topic)
})
this.props.onConnect(frame)
}, (error) => {
if (error) {
if (Object.keys(this.props).includes('onConnectFailure')) {
this.props.onConnectFailure(error)
} else {
this._log(error.stack)
}
}
if (this.state.connected) {
this._cleanUp()
// onDisconnect should be called only once per connect
this.props.onDisconnect()
}
if (this.props.autoReconnect && !this.state.explicitDisconnect) {
this._timeoutId = setTimeout(this.connect, this.props.getRetryInterval(this.retryCount++))
}
})**
The text was updated successfully, but these errors were encountered: