Websocket Connection duration

How can I get the websocket connection duration?

I have noticed plugins like the http-log plugin seem to log an event for how long the websocket connection was held open. Makes it look like one very long API tx, so you don’t get granular websocket tx times per say or # of messages across that connection but you can see those long events from time to time letting you know things are happening :slight_smile: .

Thanks for the response. Can we get the connection open and close status in http response header only so that we don’t have to scan logs?