Reputation: 785
How can I get time for which the client is connected to a socket?
Upvotes: 0
Views: 105
Reputation: 5324
There is no such feature.
I'd suggest creating @OnOpen
method, which will save the time to current instance (Endpoints are by default WebSocket Session scoped) and work with that value.
Feel free to file an enhancement against Tyrus.
Upvotes: 1