@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.
@@ -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: () => sendMessagesUpdate(), // Optional callback after streaming
179
+ onFinish: async () => {
180
+ // Fetch and persist messages to your database for restoration
181
+ },
180
182
  });
181
183
  }
182
184
  });