Reputation: 3498
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
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