Use a connection drain (sending all new requests to the desired environment - for example, green) and providing time for steaming blue clients.
You can set the maximum lifetime of your websocket (the drain time of the connection should be longer than the maximum, if such reliability is required)
Otherwise, the client side will simply be processed. If websocket frames initiate a new connection through your AWS ELB to a healthy server. Do not save state on your ELB ephemeral backends. This will also work when decreasing AWS.
source share