Terminating the WebRTC Stream#
Nothing automatically terminates the Kit App stream for you. The Kit App keeps running in the pod until you terminate the stream by calling DELETE /stream with the stream id from the create-session response.
DELETE /stream/{session_id} - Terminate a streaming session
Terminate a specific streaming session identified by its session ID.
Response Details by Status
The session was successfully terminated.
You do not have permission to terminate this session.
The requested session was not found.
The request contained invalid input.
Add explicit logic in your client application to terminate streams when sessions end. If you skip this step, idle streams consume cluster resources and can block new sessions.
Summary#
You terminate a stream by issuing DELETE /stream with the correct id. Pair this call with your UI lifecycle so you do not leave orphaned sessions. If you still need the browser session, complete client-side cleanup by following Disconnect from the WebRTC stream first.