Requires
maximem-synap 0.5.1 or newer (Python) and
@maximem/synap-js-sdk 0.5.1 or newer (JS). Earlier versions do not
have this method, and 0.5.0 loses events sent immediately after
listen().Optional. The SDK opens a session on the first event for a conversation and closes every open session when you call
stop_listening. Call this only when a conversation ends and your process keeps running.Parameters
string
required
The conversation whose session should be closed. Closing one the SDK never opened is a no-op.
Returns
ReturnsNone.
Example
See also
- instance.stop_listening: ends every open session and closes the stream.
- Event delivery: what happens to events around a close.