We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5305359 commit 095b980Copy full SHA for 095b980
dinky-web/src/models/UseWebSocketModel.tsx
@@ -119,9 +119,9 @@ export default () => {
119
reconnect();
120
} else {
121
const currentTime = new Date().getTime();
122
- if (currentTime - lastPongTimeRef.current > 15) {
+ if (currentTime - lastPongTimeRef.current > 15000) {
123
124
- } else if (currentTime - lastPongTimeRef.current > 5) {
+ } else if (currentTime - lastPongTimeRef.current > 5000) {
125
const token = JSON.parse(localStorage.getItem(TOKEN_KEY) ?? '{}')?.tokenValue;
126
ws.current.send(JSON.stringify({ token, type: 'PING' }));
127
}
0 commit comments