Chat client APIs

The following interfaces are available from the chat client:

Session

This interface is simply the foundation session service exposed.

chatClient.session.startSession()
    .then(function(session){
        console.log("Got a session");
    });

Profile

This interface is simply the foundation profile service exposed.

chatClient.profile.getMyProfile()
    .then(function(profile){
        console.log("Got my profile");
    });

Messaging

This is the chat messaging interface.

Device

This interface is simply the foundation device service exposed.

this.chatClient.device.setAPNSPushDetails("my.bundle.id", Environment.development, ">> my push token <<")
    .then(function(succeeded){
        console.log("done");
    });

Channels

This interface is simply the foundation channels service exposed.

Foundation

This interface is simply the foundation interface exposed.