Skip to content

Commit

Permalink
Merge pull request #16 from JoaoCaixinha/master
Browse files Browse the repository at this point in the history
fixes #15
  • Loading branch information
realtime-framework authored Sep 27, 2016
2 parents 0ac9e79 + d447ead commit 37c03a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Pod/Classes/OrtcClient/OrtcClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -1739,6 +1739,11 @@ - (void)webSocketDidOpen:(SRWebSocket *)webSocket
if(heartbeatActive){
hbDetails = [NSString stringWithFormat:@";%d;%d;", heartbeatTime, heartbeatFails];
}

if (connectionMetadata != nil) {
connectionMetadata = [connectionMetadata stringByReplacingOccurrencesOfString:@"\"" withString:@"\\\""];
}

// Send validate
NSString* aString = [NSString stringWithFormat:@"\"validate;%@;%@;%@;%@;%@%@\"", applicationKey, authenticationToken, announcementSubChannel ? announcementSubChannel : @"", sessionId ? sessionId : @"", connectionMetadata ? connectionMetadata : @"", hbDetails];

Expand Down
2 changes: 1 addition & 1 deletion RealtimeMessaging-iOS.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Pod::Spec.new do |s|
s.name = "RealtimeMessaging-iOS"
s.version = "2.1.30"
s.version = "2.1.32"
s.summary = "Realtime Cloud Messaging (ORTC) SDK for iOS"
s.description = <<-DESC
Part of the The Realtime® Framework, Realtime Cloud Messaging (aka ORTC) is a secure, fast and highly scalable cloud-hosted Pub/Sub real-time message broker for web and mobile apps.
Expand Down

0 comments on commit 37c03a0

Please sign in to comment.