I am using AWS ECS to run chat application written in nodejs with help of socket.io.
I used AWS Application Load Balancer as front and created one target group, target group contains AWS ECS service.
Now, let say I create 1 service with my container(using task definition) and added in the target group and the user starts connecting to my AWS ECS service using websocket.
My question is, If I update my service with new task definition, Will AWS ECS wait for older websocket connection to gracefully disconnect or it will forcefully disconnect older websocket connection with old service?