Direct Channel

Direct Channel

A direct chat channel can be used by a User to receive incoming requests from other Users, or alerts and notifications from a server. Any User can connect to another User’s direct channel to send messages, but only the User that owns the direct channel will have read permissions to receive messages on the channel.

Direct channels can be accessed by calling User.direct .

let craigb = new ChatEngine.User('craigb');
console.log(craigb.direct.channel);
// ---> craigb.direct.channel == "chat-engine#user#craigb#write#direct"