[ 
https://issues.apache.org/jira/browse/WICKET-6954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17491686#comment-17491686
 ] 

ASF GitHub Bot commented on WICKET-6954:
----------------------------------------

reiern70 commented on a change in pull request #499:
URL: https://github.com/apache/wicket/pull/499#discussion_r805406373



##########
File path: 
wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/timer/HeartBeatWithReconnectTimer.java
##########
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.protocol.ws.timer;
+
+import java.io.IOException;
+
+import org.apache.wicket.Application;
+import org.apache.wicket.protocol.ws.WebSocketSettings;
+import org.apache.wicket.protocol.ws.api.IWebSocketConnection;
+import org.apache.wicket.protocol.ws.concurrent.Executor;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class HeartBeatWithReconnectTimer extends AbstractHeartBeatTimer {
+
+    private static final Logger LOG = 
LoggerFactory.getLogger(HeartBeatWithReconnectTimer.class);
+
+
+    public HeartBeatWithReconnectTimer(WebSocketSettings webSocketSettings)
+    {
+      super(webSocketSettings);
+    }
+
+
+    @Override
+    protected boolean isTimerEnabled() {
+        if (webSocketSettings.isUseHeartBeat() ==  false)
+        {
+            if (LOG.isInfoEnabled())

Review comment:
       0k




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@wicket.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> create standard keep-alive/heartbeat like functionality for web-sockets
> -----------------------------------------------------------------------
>
>                 Key: WICKET-6954
>                 URL: https://issues.apache.org/jira/browse/WICKET-6954
>             Project: Wicket
>          Issue Type: Improvement
>            Reporter: Ernesto Reinaldo Barreiro
>            Assignee: Ernesto Reinaldo Barreiro
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to