Alexiuscrow
Alexiuscrow

Reputation: 785

Websockets. Tyrus. Time for which the client is connected to a socket

How can I get time for which the client is connected to a socket?

Upvotes: 0

Views: 105

Answers (1)

Pavel Bucek
Pavel Bucek

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

Related Questions