Where can I find documentation of the text chat feature?
Problem: I would like to add chat functionality to my application.
Solution: The Phenix SDKs provide the ability to integrate chat functionality.
You need a ChatService
for your platform:
This does require that you have access to a RoomService
as outlined below.
For viewers
The joinChannel
method will provide you with a RoomService
object once it has successfully joined the channel. (Note: You need to hold on to that reference anyway in order to stay joined):
For publishers
The publishToChannel
method will provide you with a RoomService
object:
Observable Pattern
Like other room/channel objects, the ChatService
is using observables to communicate changes. They behave somewhat like Rx observables and let you write more concise asynchronous code.
Please note for iOS only: All object names are prefixed with Phenix
, e.g. PhenixChatService
.
Keywords: Chat, Mobile, Browsers, WebSDK, Native SDK