我在不使用Xmpp
的情况下使用framework
pods
,但在发送数据包后委托didReadData
未调用。
-(void)setupStream
{
xmppStream = [[XMPPStream alloc] init];
[xmppStream addDelegate:self delegateQueue:dispatch_get_main_queue()];
xmppStream.startTLSPolicy = XMPPStreamStartTLSPolicyRequired;
[xmppStream setHostName:@"37.247.116.191"];
[xmppStream setHostPort:5222];
}