Is there any way to expire spring websocket connections after a certain time?

Viewed 309

We are using JWT token to authenticate the WebSocket Connect request by intercepting it in ChannelInterceptor.

But I could not find any way to specify the duration after which the WebSocket connection should expire based on the expiration of the JWT token.

Is there any way I could specify a specific duration for each connection after which they should automatically disconnect?

0 Answers
Related