Vladimir Despotovic
Vladimir Despotovic

Reputation: 3498

Twilio Programmable chat, how to create 1 on 1 chat rooms

I implemented swift client for chat, and Laravel as server. This works on my iPhone device, and I have channels which I can join and add messages to. However, I want the users to be able to chat 1 on 1 only. How do I implement this? Any experience with this?

Upvotes: 0

Views: 402

Answers (1)

user703894
user703894

Reputation: 51

If you have access to Twilio, you can set the channel members limit to 2 with in the base configuration of chat service. so that the chat will be 1-1.

or can use this block from twilio document

// Create a Channel
messagingClient.createChannel({
uniqueName: 'general',
friendlyName: 'General Chat Channel',
isPrivate: true
}).then(function(channel) {
console.log('Created general channel:');
console.log(channel);
});

Upvotes: 1

Related Questions