Skip to content

Commit 2c42398

Browse files
committed
getChathHistory added
1 parent 0e06021 commit 2c42398

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/api/Chat/getChatHistory.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
### getChatHistory
2+
3+
Requests and retrieves the chat history from a websocket connection. This function sends a request for chat history and listens for a response message containing that history. It returns a promise that resolves with the chat history data once received.
4+
5+
#### Syntax
6+
7+
```javascript
8+
codebolt.chat.getChatHistory(): Promise<any>
9+
```
10+
11+
12+
#### Parameters
13+
This function does not take any parameters.
14+
15+
16+
#### Returns
17+
18+
Returns a `Promise` that resolves with the chat history data, which is the response to the `getChatHistory` request, when a message of type `getChatHistoryResponse` is received.

0 commit comments

Comments
 (0)