Channel history is not being fetched in JavaScript/TypeScript Photon Chat SDK
Options
rjkz808
✭
in Photon Chat
Hello! I have a trouble with Photon Chat JS SDK. Whenever I provide `historyLength` param in `ChatClient.subscribe` method, it doesn't fetch this channel actual history, it just saves an empty array. It seems like a bug in JS SDK itself. How can I resolve this issue? Thank you.
0
Comments
-
Hi,
Is the channel you are trying to subscribe alive? Keep at least one client connected to a channel. Otherwise it will be disposed quickly. For more information read https://doc.photonengine.com/en-us/chat/current/reference/history1 -
Ok, now I understand how it works. Thank you!0