XMPPJID *roomJID = [XMPPJID jidWithString:@"chat11@conference.local_IP"];
xmppRoom = [[XMPPRoom alloc] initWithRoomStorage:roomStorage jid:roomJID dispatchQueue:dispatch_get_main_queue()];
[xmppRoom activate:[self appDelegate].xmppStream];
[xmppRoom addDelegate:self delegateQueue:dispatch_get_main_queue()];
[xmppRoom joinRoomUsingNickname:@"pandian"
history:nil password:nil];
任何帮助将不胜感激。
答案 0 :(得分:0)
检查您为XMPPStream对象设置的hostName和端口号。
let stream = XMPPStream()
stream.hostName = "hostName"
stream.hostPort = PORT_NUM