When does IraCpa close websocket connection?

IraCPA will disconnect the wss connection in case of 2 instances based on the cpa_config that you have configured.

1.The result that is sent is mentioned as break event. For example if the break_events is configured as "AM,LV,FX" it will stop the analysis and disconnect as soon as one of these results is detected. If the break_event is configured as "LV,FX" then it will disconnect in case of LV and FX result, but continue analysis in case of AM.
2.The total_timeout mention in the cpa_config is reached. For example, if total_timeout is configured as 15000, the connection will close after 15 seconds from the time connection was established.