calls

enables/disables an ability to perform calls

boolean|object calls;

Example

webix.ui({
  view: "chat",
  token, // token got from the server
  url: "https://docs.webix.com/chat-backend/",
  calls: {
    enabled: true
  }
});


Default value:

false

Related samples

Details

Depending on the properties of the "calls" object, Chat uses different types of connections: P2P or LiveKit. Possible configurations are:

  • one-to-one calls using a P2P connection
calls: true // or calls: { enabled: true }
  • group calls using a LiveKit connection
    calls: {
        enabled: true
        groupCalls: true,
        livekitConfig: {
            host: "https://livekit.webix.io" 
        }
    }
  • one-to-one calls using a LiveKit connection
    calls: {
        enabled: true
        groupCalls: false,
        livekitConfig: {
            host: "https://livekit.webix.io" 
        }
    }

Please note that you should configure LiveKit server to establish a LiveKit connection.

See also
Back to top