# How to maximize the chat role

**URL:** <https://openvidu.discourse.group/t/how-to-maximize-the-chat-role/3559>\
**Category:** How to implement?\
**Tags:** v2\
**Created:** [November 6, 2021, 10:38pm UTC](https://openvidu.discourse.group/t/how-to-maximize-the-chat-role/3559 "2021-11-06T22:38:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed\_Alrasheed](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/ahmed_alrasheed/32/606_2.png) [@Ahmed\_Alrasheed](https://openvidu.discourse.group/u/Ahmed_Alrasheed)\
**Post date:** [November 6, 2021, 10:38pm UTC](https://openvidu.discourse.group/t/how-to-maximize-the-chat-role/3559/1 "2021-11-06T22:38:38Z")

</div>

hey guys  
i am building a platform and messaging between the members is part of it, video audio and regular chat

so I was wondering whats the optimal way to do that and if it was possible in openvidu, so like whatsapp most of the chats will be just texting, with video/audio choice

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [November 9, 2021, 10:06pm UTC](https://openvidu.discourse.group/t/how-to-maximize-the-chat-role/3559/2 "2021-11-09T22:06:35Z")

</div>

OpenVidu provides the concept of session and a user can join to any session controlled by tokens. So yes, you could implement a whatsapp like application with OpenVidu.

But there are some limitations with OpenVidu for this kind of application:

- OpenVidu is optimized is such a way so a user can only be connected to a session at a time. In whatsapp you are connected to multiple conversations at the same time.
- WebSocket is used to maintain the connection with the session, so no notifications (mobile or in browser) when the user is not connected.
- You have to persist the messages exchanged on your own application. OpenVidu just distribute the messages, but not persist them to send them to a non connected user when it connects again.

It is better idea to implement the chat with other library or technology and use OpenVidu just when participants want to have a audio/video conversation.

Regards
