I think that we do something similar elsewhere in gaia (maybe music app), where it opens a connection for each message.

I'm not sure if this will return the active connection, or how I could check. Perhaps I will try storing the connection using the visible state of the search app.