Skip to content

Commit

Permalink
update documentation for disconnect and reconnect scenario (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiajon authored Dec 27, 2024
1 parent 4ff2041 commit c7ab17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ chatSession.onConnectionEstablished(event => {
});
```

Subscribes an event handler that triggers when the session connection is established.
Subscribes an event handler that triggers when the session connection is established. In the case where the end customer loses network and reconnects to the chat, you can call getTranscript in this event handler to display any messages sent by the agent while end customer was offline. Make sure the next token is null in this call to getTranscript so that it returns the latest messages.

##### `chatSession.onEnded()`

Expand Down

0 comments on commit c7ab17a

Please sign in to comment.