-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
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
Restart all ws connections on packet delay setting update. #243
base: master
Are you sure you want to change the base?
Restart all ws connections on packet delay setting update. #243
Conversation
Send heartbeat messages to ws connections to monitor ws server connection to check packet delay timeout for meta reload event.
@@ -29,7 +29,7 @@ module.exports = async (server, ws, msg) => { | |||
fullScreen, | |||
packetWDDelay, | |||
autoResumeAOs, | |||
showOptInModal, | |||
// showOptInModal, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: We can just remove it if not required. Same, for other respective comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
const strategyManager = session.getStrategyManager() | ||
if (strategyManager) { | ||
const { apiKey, apiSecret } = session.getCredentials() | ||
strategyManager.restartConnection(apiKey, apiSecret, packetWDDelay) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
promise is ignored
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
if (sinceLastMessage > this.packetWDDelay) { | ||
return true | ||
} | ||
|
||
return false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (sinceLastMessage > this.packetWDDelay) { | |
return true | |
} | |
return false | |
return sinceLastMessage > this.packetWDDelay |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
if (sinceLastMessage > this.packetWDDelay) { | ||
return true | ||
} | ||
|
||
return false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (sinceLastMessage > this.packetWDDelay) { | |
return true | |
} | |
return false | |
return sinceLastMessage > this.packetWDDelay |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
# Conflicts: # lib/ws_servers/api/handlers/strategy/strategy_manager.js
Restart all ws connections on packet delay setting update.
Send heartbeat messages to ws connections to monitor ws server connection to check packet delay timeout for meta reload event.