In my micronaut application I am using websockets but socket connection is timing out after every 5 minutes i want to customize this value. In micronaut documentation this configuration is given:
micronaut:
server:
idle-timeout: 30m # 30 minutes
But this config is also not working. Can anyone help?
Had to use this configuration:
server:
idle-timeout: 60m
read-idle-timeout: 60m
write-idle-timeout: 60m
Turns out Micronaut sends a disconnect event for every one of these settings so we have to update timeout for all three values.