-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(subscribe): fix user timetoken parse
Fix issue with `PNSubscribeCursorData` which should have optional `region` to handle user timetoken in received real-time messages.
- Loading branch information
Showing
4 changed files
with
283 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
244 changes: 244 additions & 0 deletions
244
...ndle/ItShouldSubscribeToSingleChannelAndReceiveMessageWithUserTimetokenWhenPublished.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,244 @@ | ||
[ | ||
{ | ||
"id" : "6D9CF0BE-C72E-451C-BD56-ADC3759E4917", | ||
"data" : { | ||
"method" : "get", | ||
"cls" : "NSURLRequest", | ||
"cellular" : true, | ||
"cache" : 1, | ||
"timeout" : 60, | ||
"cookies" : true, | ||
"headers" : { | ||
"User-Agent" : "iPhone; CPU iPhone OS 12.4.0 Version", | ||
"Accept" : "*\/*", | ||
"Connection" : "keep-alive", | ||
"Accept-Encoding" : "gzip,deflate" | ||
}, | ||
"pipeline" : false, | ||
"network" : 0, | ||
"url" : "https:\/\/ps.pndsn.com\/v2\/subscribe\/demo\/test-channel1\/0?pnsdk=PubNub-ObjC-iOS\/4.x.x&uuid=Serhii&tt=0&heartbeat=20" | ||
}, | ||
"type" : 0 | ||
}, | ||
{ | ||
"id" : "6D9CF0BE-C72E-451C-BD56-ADC3759E4917", | ||
"data" : { | ||
"status" : 200, | ||
"cls" : "NSHTTPURLResponse", | ||
"url" : "https:\/\/ps.pndsn.com\/v2\/subscribe\/demo\/test-channel1\/0?pnsdk=PubNub-ObjC-iOS\/4.x.x&uuid=Serhii&tt=0&heartbeat=20", | ||
"headers" : { | ||
"Access-Control-Allow-Methods" : "GET", | ||
"Content-Type" : "text\/javascript; charset=\"UTF-8\"", | ||
"Access-Control-Allow-Origin" : "*", | ||
"Date" : "Tue, 04 Feb 2020 13:10:11 GMT", | ||
"Content-Length" : "45", | ||
"Cache-Control" : "no-cache", | ||
"Connection" : "keep-alive" | ||
} | ||
}, | ||
"type" : 1 | ||
}, | ||
{ | ||
"id" : "6D9CF0BE-C72E-451C-BD56-ADC3759E4917", | ||
"data" : { | ||
"cls" : "NSData", | ||
"base64" : "eyJ0Ijp7InQiOiIxNTgwODIxODExNDczMDU1OSIsInIiOjEyfSwibSI6W119" | ||
}, | ||
"type" : 2 | ||
}, | ||
{ | ||
"id" : "6D9CF0BE-C72E-451C-BD56-ADC3759E4917", | ||
"type" : 4 | ||
}, | ||
{ | ||
"id" : "56380FEF-3510-4D26-8D88-22A028B35217", | ||
"data" : { | ||
"method" : "get", | ||
"cls" : "NSURLRequest", | ||
"cellular" : true, | ||
"cache" : 1, | ||
"timeout" : 60, | ||
"cookies" : true, | ||
"headers" : { | ||
"User-Agent" : "iPhone; CPU iPhone OS 12.4.0 Version", | ||
"Accept" : "*\/*", | ||
"Connection" : "keep-alive", | ||
"Accept-Encoding" : "gzip,deflate" | ||
}, | ||
"pipeline" : false, | ||
"network" : 0, | ||
"url" : "https:\/\/ps.pndsn.com\/v2\/subscribe\/demo\/test-channel1\/0?uuid=Serhii&pnsdk=PubNub-ObjC-iOS\/4.x.x&tt=15808218114730559&heartbeat=20&tr=12" | ||
}, | ||
"type" : 0 | ||
}, | ||
{ | ||
"id" : "9060F768-F824-4970-93AC-4BF1FA1121D5", | ||
"data" : { | ||
"method" : "get", | ||
"cls" : "NSURLRequest", | ||
"cellular" : true, | ||
"cache" : 1, | ||
"timeout" : 60, | ||
"cookies" : true, | ||
"headers" : { | ||
"User-Agent" : "iPhone; CPU iPhone OS 12.4.0 Version", | ||
"Accept" : "*\/*", | ||
"Connection" : "keep-alive", | ||
"Accept-Encoding" : "gzip,deflate" | ||
}, | ||
"pipeline" : false, | ||
"network" : 0, | ||
"url" : "https:\/\/ps.pndsn.com\/publish\/demo\/demo\/0\/test-channel1\/0\/%7B%22test-message%22:%5B%22message%22%5D%7D?uuid=Serhii&pnsdk=PubNub-ObjC-iOS\/4.x.x&seqn=1" | ||
}, | ||
"type" : 0 | ||
}, | ||
{ | ||
"id" : "9060F768-F824-4970-93AC-4BF1FA1121D5", | ||
"data" : { | ||
"status" : 200, | ||
"cls" : "NSHTTPURLResponse", | ||
"url" : "https:\/\/ps.pndsn.com\/publish\/demo\/demo\/0\/test-channel1\/0\/%7B%22test-message%22:%5B%22message%22%5D%7D?pnsdk=PubNub-ObjC-iOS\/4.x.x&seqn=1&uuid=Serhii", | ||
"headers" : { | ||
"Access-Control-Allow-Methods" : "GET", | ||
"Content-Type" : "text\/javascript; charset=\"UTF-8\"", | ||
"Access-Control-Allow-Origin" : "*", | ||
"Date" : "Tue, 04 Feb 2020 13:10:14 GMT", | ||
"Content-Length" : "30", | ||
"Cache-Control" : "no-cache", | ||
"Connection" : "keep-alive" | ||
} | ||
}, | ||
"type" : 1 | ||
}, | ||
{ | ||
"id" : "9060F768-F824-4970-93AC-4BF1FA1121D5", | ||
"data" : { | ||
"cls" : "NSData", | ||
"base64" : "WzEsIlNlbnQiLCIxNTgwODIxODE0ODc5NTIwMCJd" | ||
}, | ||
"type" : 2 | ||
}, | ||
{ | ||
"id" : "9060F768-F824-4970-93AC-4BF1FA1121D5", | ||
"type" : 4 | ||
}, | ||
{ | ||
"id" : "56380FEF-3510-4D26-8D88-22A028B35217", | ||
"data" : { | ||
"status" : 200, | ||
"cls" : "NSHTTPURLResponse", | ||
"url" : "https:\/\/ps.pndsn.com\/v2\/subscribe\/demo\/test-channel1\/0?uuid=Serhii&pnsdk=PubNub-ObjC-iOS\/4.x.x&tt=15808218114730559&heartbeat=20&tr=12", | ||
"headers" : { | ||
"Access-Control-Allow-Methods" : "GET", | ||
"Content-Type" : "text\/javascript; charset=\"UTF-8\"", | ||
"Access-Control-Allow-Origin" : "*", | ||
"Date" : "Tue, 04 Feb 2020 13:10:14 GMT", | ||
"Content-Length" : "291", | ||
"Cache-Control" : "no-cache", | ||
"Connection" : "keep-alive" | ||
} | ||
}, | ||
"type" : 1 | ||
}, | ||
{ | ||
"id" : "56380FEF-3510-4D26-8D88-22A028B35217", | ||
"data" : { | ||
"cls" : "NSData", | ||
"base64" : "eyJ0Ijp7InQiOiIxNTgwODIxODE0ODgwNDc4NyIsInIiOjEyfSwibSI6W3siYSI6IjUiLCJmIjowLCJpIjoiU2VyaGlpIiwicyI6MTAsInAiOnsidCI6IjE1ODA4MjE4MTQ4Nzk1MjAwIiwiciI6MTJ9LCJvIjp7InQiOiIxNTgwODIxODE0ODc5NTE5OSJ9LCJrIjoiZGVtbyIsImMiOiJ0ZXN0LWNoYW5uZWwxIiwiZCI6eyJ0ZXN0LW1lc3NhZ2UiOlsibWVzc2FnZSJdfX1dfQ==" | ||
}, | ||
"type" : 2 | ||
}, | ||
{ | ||
"id" : "56380FEF-3510-4D26-8D88-22A028B35217", | ||
"type" : 4 | ||
}, | ||
{ | ||
"id" : "8166D76F-F897-4ABB-934A-13726D856948", | ||
"data" : { | ||
"method" : "get", | ||
"cls" : "NSURLRequest", | ||
"cellular" : true, | ||
"cache" : 1, | ||
"timeout" : 60, | ||
"cookies" : true, | ||
"headers" : { | ||
"User-Agent" : "iPhone; CPU iPhone OS 12.4.0 Version", | ||
"Accept" : "*\/*", | ||
"Connection" : "keep-alive", | ||
"Accept-Encoding" : "gzip,deflate" | ||
}, | ||
"pipeline" : false, | ||
"network" : 0, | ||
"url" : "https:\/\/ps.pndsn.com\/v2\/subscribe\/demo\/test-channel1\/0?uuid=Serhii&pnsdk=PubNub-ObjC-iOS\/4.x.x&tt=15808218148804787&heartbeat=20&tr=12" | ||
}, | ||
"type" : 0 | ||
}, | ||
{ | ||
"id" : "8166D76F-F897-4ABB-934A-13726D856948", | ||
"data" : { | ||
"code" : -999, | ||
"info" : { | ||
"NSErrorFailingURLStringKey" : "https:\/\/ps.pndsn.com\/v2\/subscribe\/demo\/test-channel1\/0?uuid=Serhii&pnsdk=PubNub-ObjC-iOS\/4.x.x&tt=15808218148804787&heartbeat=20&tr=12", | ||
"NSLocalizedDescription" : "cancelled", | ||
"NSErrorFailingURLKey" : "https:\/\/ps.pndsn.com\/v2\/subscribe\/demo\/test-channel1\/0?uuid=Serhii&pnsdk=PubNub-ObjC-iOS\/4.x.x&tt=15808218148804787&heartbeat=20&tr=12" | ||
}, | ||
"cls" : "NSError", | ||
"domain" : "NSURLErrorDomain" | ||
}, | ||
"type" : 3 | ||
}, | ||
{ | ||
"id" : "1966F67F-1E40-41C0-B669-9A9607D9514C", | ||
"data" : { | ||
"method" : "get", | ||
"cls" : "NSURLRequest", | ||
"cellular" : true, | ||
"cache" : 1, | ||
"timeout" : 60, | ||
"cookies" : true, | ||
"headers" : { | ||
"User-Agent" : "iPhone; CPU iPhone OS 12.4.0 Version", | ||
"Accept" : "*\/*", | ||
"Connection" : "keep-alive", | ||
"Accept-Encoding" : "gzip,deflate" | ||
}, | ||
"pipeline" : false, | ||
"network" : 0, | ||
"url" : "https:\/\/ps.pndsn.com\/v2\/presence\/sub_key\/demo\/channel\/test-channel1\/leave?uuid=Serhii&pnsdk=PubNub-ObjC-iOS\/4.x.x" | ||
}, | ||
"type" : 0 | ||
}, | ||
{ | ||
"id" : "1966F67F-1E40-41C0-B669-9A9607D9514C", | ||
"data" : { | ||
"status" : 200, | ||
"cls" : "NSHTTPURLResponse", | ||
"url" : "https:\/\/ps.pndsn.com\/v2\/presence\/sub_key\/demo\/channel\/test-channel1\/leave?uuid=Serhii&pnsdk=PubNub-ObjC-iOS\/4.x.x", | ||
"headers" : { | ||
"Access-Control-Allow-Methods" : "OPTIONS, GET, POST", | ||
"Content-Type" : "text\/javascript; charset=\"UTF-8\"", | ||
"Server" : "Pubnub Presence", | ||
"Access-Control-Allow-Origin" : "*", | ||
"Age" : "0", | ||
"Date" : "Tue, 04 Feb 2020 13:10:15 GMT", | ||
"Accept-Ranges" : "bytes", | ||
"Content-Length" : "74", | ||
"Cache-Control" : "no-cache", | ||
"Connection" : "keep-alive" | ||
} | ||
}, | ||
"type" : 1 | ||
}, | ||
{ | ||
"id" : "1966F67F-1E40-41C0-B669-9A9607D9514C", | ||
"data" : { | ||
"cls" : "NSData", | ||
"base64" : "eyJzdGF0dXMiOiAyMDAsICJtZXNzYWdlIjogIk9LIiwgImFjdGlvbiI6ICJsZWF2ZSIsICJzZXJ2aWNlIjogIlByZXNlbmNlIn0=" | ||
}, | ||
"type" : 2 | ||
}, | ||
{ | ||
"id" : "1966F67F-1E40-41C0-B669-9A9607D9514C", | ||
"type" : 4 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters