XMPPFramework - How to Create a MultiUserChat Rooms?

后端 未结 1 1650
孤城傲影
孤城傲影 2021-01-16 06:57

How can I Achieve GroupChat in iPhone using XMPPFramework.I tried fallowing code but room is not created.How can I know whether room is created or not.XMPPRoomDelegate are n

相关标签:
1条回答
  • 2021-01-16 07:29
     [self ConfigureNewRoom];
    
     XMPPRoomMemoryStorage *roomMemoryStorage = [[XMPPRoomMemoryStorage alloc] init];
    
    XMPPRoom *xmppRoom1 = [[XMPPRoom alloc] initWithRoomStorage:roomMemoryStorage jid:[XMPPJID jidWithString:@"Fun@conference.server.com"] dispatchQueue:dispatch_get_main_queue()];
    
    [xmppRoom1 activate:[self xmppStream]];
    
    [xmppRoom1 joinRoomUsingNickname:@"Fun" history:nil];
    [xmppRoom1 addDelegate:self delegateQueue:dispatch_get_main_queue()];
    [xmppRoom1 fetchConfigurationForm];
    [xmppRoom1 configureRoomUsingOptions:nil];
    
    0 讨论(0)
提交回复
热议问题