The endSession method marks the end of the runtime session. When the runtime server receives this method, the runtime server logs to history, clears memory, and so on.
The runtime server responds to the endSession method with the
Response object with the following attributes populated:
The following example shows the endSession method and how you can parse the response.
sessionId is the same string to identify the session used by the
startSession call which started this session.