Hi, @Maxim: the problem Manfred faces is not that the Http Session expires but that the WebSocket connection is closed by the web container due to inactivity.
@Manfred: I'd use server-side timer that uses the IWebSocketConnectionRegistry to send the heartbeat message to all connected clients. The clients should ignore this message. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 18, 2017 at 8:55 AM, Maxim Solodovnik <[email protected]> wrote: > Hello Manfred, > > AFAIK websocket ping messages will not update HTTP session. > You can set up AbstractAjaxTimerBehavior or send pure JS HTTP request > to refresh the session > > On Sat, Sep 16, 2017 at 7:34 PM, Manfred Bergmann > <[email protected]> wrote: > > > > Hi, > > > > On Sat, Sep 16, 2017 at 1:32 PM, Manfred Bergmann <mb@> > > wrote: > > > >> Found a different solution. > >> > >> Followed the advice here: > >> https://issues.apache.org/jira/browse/WICKET-5453 > >> > >> Where you can set the default idle timeout on the > >> WebSocketServerContainerInitializer. > >> > > > > This is a good start! > > But if there is a proxy involved then you will need to do the same there > > too. > > Better send heartbeat messages once in a while, e.g. every minute. > > > > > > > > OK. I'm not exactly certain how I would do that. > > Do you mean a timer on the server side which sends some message over the > > websocket, > > or some behavior, as suggested by Maxim? > > > > How do I handle that when the panel got disposed? > > > > > > Manfred > > > > -- > > Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum- > f1842947.html > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > -- > WBR > Maxim aka solomax > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
