fix(sdk): preserve session stream ordering
This commit is contained in:
parent
605fb0b6c5
commit
5d27fac711
7 changed files with 228 additions and 88 deletions
|
|
@ -60,6 +60,12 @@ export const Activity = Event.define({
|
|||
})
|
||||
export type Activity = typeof Activity.Type
|
||||
|
||||
export const makeActivity = (sessionID: SessionID, active: boolean): Activity => ({
|
||||
id: Event.ID.create(),
|
||||
type: Activity.type,
|
||||
data: { sessionID, active },
|
||||
})
|
||||
|
||||
export const AgentSwitched = Event.define({
|
||||
type: "session.next.agent.switched",
|
||||
...options,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue