Using Communication Components > FCChat object

 

FCChat object

The FCChat API provides the client-side functionality for connecting your objects to the server and cleaning up. You can also clear chat history from the client programmatically. For the server-side API to this component, see FCChat server-side object.

 
Method summary for the FCChat object

Method

Description

FCChat.connect

Sets up all the assets needed by the component (on the client side and the server side) and gets the chat history.

FCChat.setUsername

Gets the user name to display in the list of active users.

FCChat.clearHistory

Clears the chat history and forces all the clients to update.

FCChat.close

Cleans up after itself.