This content has been marked as final.
Show 2 replies
-
1. Re: Websockets timeout ?
rhusar Dec 3, 2013 12:55 PM (in response to titmael)How about https://javaee-spec.java.net/nonav/javadocs/javax/websocket/Session.html#setMaxIdleTimeout(long) ?
Set the non-zero number of milliseconds before this session will be closed by the container if it is inactive, ie no messages are either sent or received. A value that is 0 or negative indicates the session will never timeout due to inactivity.
-
2. Re: Websockets timeout ?
titmael Dec 4, 2013 3:14 AM (in response to rhusar)I don't want to close the socket if inactive, I would like to timeout the sentText method on server side