Hello,
Lightstreamer server specifically supports the so called
long-polling mode for use-cases like yours. In this mode the connection is released as soon as the real-time notifications are sent.
You can find more information on the guide
Generic Clients: Network Protocol (TLCP) Specification in Docs page of Lightstreamer web site.
Especially read the sections:
- Session Life Cycle (p. 6)
- the syntax of the client-server protocol (chapter 3, p. 22)
- the discussion about parameters
LS_polling, LS_polling_millis and LS_idle_millis in Session Binding Request (p. 24)
- the Hands On examples (chapter 6, p. 64)