@octavus/docs 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/content/02-server-sdk/02-sessions.md +3 -1
- package/dist/chunk-G5OOF4JJ.js +1471 -0
- package/dist/chunk-G5OOF4JJ.js.map +1 -0
- package/dist/chunk-RI24MRSN.js +1471 -0
- package/dist/chunk-RI24MRSN.js.map +1 -0
- package/dist/content.js +1 -1
- package/dist/docs.json +4 -4
- package/dist/index.js +1 -1
- package/dist/search-index.json +1 -1
- package/dist/search.js +1 -1
- package/dist/search.js.map +1 -1
- package/dist/sections.json +4 -4
- package/package.json +1 -1
|
@@ -176,7 +176,9 @@ conn.on('data', async (rawData: string) => {
|
|
|
176
176
|
if (msg.type === 'trigger' || msg.type === 'continue' || msg.type === 'stop') {
|
|
177
177
|
await session.handleSocketMessage(msg as SocketMessage, {
|
|
178
178
|
onEvent: (event) => conn.write(JSON.stringify(event)),
|
|
179
|
-
onFinish: () =>
|
|
179
|
+
onFinish: async () => {
|
|
180
|
+
// Fetch and persist messages to your database for restoration
|
|
181
|
+
},
|
|
180
182
|
});
|
|
181
183
|
}
|
|
182
184
|
});
|