我实现了聊天的swift客户端,并使用Laravel作为服务器。这在我的iPhone设备上有效,并且我有可以加入和添加消息的通道。然而,我希望用户能够聊天1对1只。我如何实现这一点?有这方面的经验吗?
发布于 2020-11-20 17:43:13
如果您有Twilio的访问权限,您可以在聊天服务的基本配置中使用设置通道成员限制为2。所以聊天将会是1-1。
或者可以使用twilio文档中的这个块
// Create a Channel
messagingClient.createChannel({
uniqueName: 'general',
friendlyName: 'General Chat Channel',
isPrivate: true
}).then(function(channel) {
console.log('Created general channel:');
console.log(channel);
});https://stackoverflow.com/questions/64903011
复制相似问题