// [socket on:@”chat” callback:^(NSArray *dataArray, SocketAckEmitter *ackEmitter) {
// //NSLog(@”chat dataArray:%@”,dataArray);
// if (dataArray.count > 0) {
// NSString *messageStr = dataArray.firstObject;
// NSString *desDeStr = [messageStr desDecryptWithKey:deskey];
// if ([NSString isBlankWithStr:desDeStr]) {
// NSLog(@”数据解密失败”);
// return ;
// }
// NSLog(@”desDeStr:%@”,desDeStr);
// NSDictionary *messageDict = [self dictionaryWithJsonString:desDeStr];
//
// NSLog(@”messageDict:%@”,messageDict);
// NSString *msgId = messageDict[@”msgId”];
// // NSLog(@”ackEmitter.expected:%d”,ackEmitter.expected);
// #pragma mark –19年11-19修改
// // NSDictionary *dic = @{@”fromId”:[NSString acquireUserId],@”msgId”:msgId,@”msgBody”:dataArray.firstObject};
// NSDictionary * dic = [NSDictionary dictionaryWithObjectsAndKeys:[NSString acquireUserId],@”fromId”,msgId,@”msgId”,messageDict,@”msgBody”,nil];
// // [ackEmitter with:@[msgId]];
// [ackEmitter with:@[[JSON stringWithObject:dic]]];
// [weakSelf receiveSocketMessageWith:@[messageDict]];
//
//// NSDictionary *messageDict = dataArray.firstObject;
//// NSString *msgId = messageDict[@”msgId”];
////// NSLog(@”ackEmitter.expected:%d”,ackEmitter.expected);
////#pragma mark –19年11-19修改
////// NSDictionary *dic = @{@”fromId”:[NSString acquireUserId],@”msgId”:msgId,@”msgBody”:dataArray.firstObject};
//// NSDictionary * dic = [NSDictionary dictionaryWithObjectsAndKeys:[NSString acquireUserId],@”fromId”,msgId,@”msgId”,dataArray.firstObject,@”msgBody”,nil];
////// [ackEmitter with:@[msgId]];
//// [ackEmitter with:@[[JSON stringWithObject:dic]]];
//// [weakSelf receiveSocketMessageWith:dataArray];
// }
// }];