pubnub 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pubnub might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.pubnub.yml +8 -1
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/VERSION +1 -1
- data/fixtures/vcr_cassettes/lib/events/create_space.yml +40 -0
- data/fixtures/vcr_cassettes/lib/events/create_user.yml +40 -0
- data/fixtures/vcr_cassettes/lib/events/delete_space.yml +38 -0
- data/fixtures/vcr_cassettes/lib/events/delete_user.yml +38 -0
- data/fixtures/vcr_cassettes/lib/events/get_members.yml +38 -0
- data/fixtures/vcr_cassettes/lib/events/get_space.yml +38 -0
- data/fixtures/vcr_cassettes/lib/events/get_space_memberships.yml +38 -0
- data/fixtures/vcr_cassettes/lib/events/get_spaces.yml +40 -0
- data/fixtures/vcr_cassettes/lib/events/get_user.yml +38 -0
- data/fixtures/vcr_cassettes/lib/events/manage_members_add.yml +40 -0
- data/fixtures/vcr_cassettes/lib/events/manage_members_remove.yml +83 -0
- data/fixtures/vcr_cassettes/lib/events/manage_memberships_add.yml +40 -0
- data/fixtures/vcr_cassettes/lib/events/manage_memberships_remove.yml +40 -0
- data/fixtures/vcr_cassettes/lib/events/subscribe-member-add-async.yml +77 -0
- data/fixtures/vcr_cassettes/lib/events/subscribe-member-remove-async.yml +77 -0
- data/fixtures/vcr_cassettes/lib/events/subscribe-membership-add-async.yml +77 -0
- data/fixtures/vcr_cassettes/lib/events/subscribe-membership-remove-async.yml +77 -0
- data/fixtures/vcr_cassettes/lib/events/subscribe-space-delete-async.yml +77 -0
- data/fixtures/vcr_cassettes/lib/events/subscribe-space-update-async.yml +77 -0
- data/fixtures/vcr_cassettes/lib/events/subscribe-user-delete-async.yml +77 -0
- data/fixtures/vcr_cassettes/lib/events/subscribe-user-update-async.yml +77 -0
- data/fixtures/vcr_cassettes/lib/events/update_space.yml +40 -0
- data/fixtures/vcr_cassettes/lib/events/update_user.yml +40 -0
- data/lib/pubnub/subscribe_callback.rb +4 -1
- data/lib/pubnub/subscribe_event/formatter.rb +33 -0
- data/lib/pubnub/subscriber.rb +6 -0
- data/lib/pubnub/version.rb +1 -1
- data/spec/lib/events/subscribe_spec.rb +188 -0
- metadata +25 -2
@@ -0,0 +1,83 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://ps.pndsn.com/v2/presence/sub-key/demo/channel/demo/heartbeat?auth=ruby-test-auth&heartbeat=3&l_pres=0.006&pnsdk=PubNub-Ruby/4.2.0&state=%7B%22channel%22:%7B%7D,%22group%22:%7B%7D%7D&uuid=ruby-test-uuid
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Fri, 25 Oct 2019 20:35:49 GMT
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Fri, 25 Oct 2019 20:35:52 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/javascript; charset="UTF-8"
|
25
|
+
Content-Length:
|
26
|
+
- '55'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Access-Control-Allow-Origin:
|
30
|
+
- "*"
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- OPTIONS, GET, POST
|
33
|
+
Age:
|
34
|
+
- '0'
|
35
|
+
Server:
|
36
|
+
- Pubnub Presence
|
37
|
+
Cache-Control:
|
38
|
+
- no-cache
|
39
|
+
Accept-Ranges:
|
40
|
+
- bytes
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"status": 200, "message": "OK", "service": "Presence"}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Fri, 25 Oct 2019 20:35:50 GMT
|
46
|
+
- request:
|
47
|
+
method: patch
|
48
|
+
uri: http://ps.pndsn.com/v1/objects/demo/spaces/space-1/users?auth=ruby-test-auth&include=custom&pnsdk=PubNub-Ruby/4.2.0&uuid=ruby-test-uuid
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"remove":[{"id":"mg2"}]}'
|
52
|
+
headers:
|
53
|
+
User-Agent:
|
54
|
+
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
55
|
+
Accept:
|
56
|
+
- "*/*"
|
57
|
+
Date:
|
58
|
+
- Fri, 25 Oct 2019 20:35:49 GMT
|
59
|
+
Content-Type:
|
60
|
+
- application/x-www-form-urlencoded
|
61
|
+
response:
|
62
|
+
status:
|
63
|
+
code: 200
|
64
|
+
message: OK
|
65
|
+
headers:
|
66
|
+
Date:
|
67
|
+
- Fri, 25 Oct 2019 20:35:52 GMT
|
68
|
+
Content-Type:
|
69
|
+
- application/json
|
70
|
+
Content-Length:
|
71
|
+
- '24'
|
72
|
+
Connection:
|
73
|
+
- keep-alive
|
74
|
+
Access-Control-Allow-Origin:
|
75
|
+
- "*"
|
76
|
+
Access-Control-Allow-Credentials:
|
77
|
+
- 'true'
|
78
|
+
body:
|
79
|
+
encoding: UTF-8
|
80
|
+
string: '{"status":200,"data":[]}'
|
81
|
+
http_version:
|
82
|
+
recorded_at: Fri, 25 Oct 2019 20:35:50 GMT
|
83
|
+
recorded_with: VCR 5.0.0
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: patch
|
5
|
+
uri: http://ps.pndsn.com/v1/objects/demo/users/mg3/spaces?auth=ruby-test-auth&include=custom&pnsdk=PubNub-Ruby/4.2.0&uuid=ruby-test-uuid
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"add":[{"id":"space-1"}]}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Fri, 25 Oct 2019 20:35:48 GMT
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Fri, 25 Oct 2019 20:35:51 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Content-Length:
|
28
|
+
- '168'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Allow-Credentials:
|
34
|
+
- 'true'
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"status":200,"data":[{"id":"space-1","custom":null,"created":"2019-10-25T20:35:51.93913Z","updated":"2019-10-25T20:35:51.93913Z","eTag":"AY39mJKK//C0VA"}],"next":"MQ"}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Fri, 25 Oct 2019 20:35:49 GMT
|
40
|
+
recorded_with: VCR 5.0.0
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: patch
|
5
|
+
uri: http://ps.pndsn.com/v1/objects/demo/users/mg3/spaces?auth=ruby-test-auth&include=custom&pnsdk=PubNub-Ruby/4.2.0&uuid=ruby-test-uuid
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"remove":[{"id":"space-1"}]}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Fri, 25 Oct 2019 20:35:49 GMT
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Fri, 25 Oct 2019 20:35:52 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Content-Length:
|
28
|
+
- '24'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Allow-Credentials:
|
34
|
+
- 'true'
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"status":200,"data":[]}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Fri, 25 Oct 2019 20:35:49 GMT
|
40
|
+
recorded_with: VCR 5.0.0
|
@@ -0,0 +1,77 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://ps.pndsn.com/v2/subscribe/sub-a-mock-key/rb_space_4/0?auth=ruby-test-auth&pnsdk=PubNub-Ruby/4.2.0&t=%7B%22r%22:0,%22t%22:0%7D&uuid=ruby-test-uuid
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Fri, 25 Oct 2019 20:20:13 GMT
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Fri, 25 Oct 2019 20:20:15 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/javascript; charset="UTF-8"
|
25
|
+
Content-Length:
|
26
|
+
- '45'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Allow-Methods:
|
34
|
+
- GET
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"t":{"t":"15720347890178803","r":12},"m":[]}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Fri, 25 Oct 2019 20:20:13 GMT
|
40
|
+
- request:
|
41
|
+
method: get
|
42
|
+
uri: http://ps.pndsn.com/v2/subscribe/sub-a-mock-key/rb_space_4/0?auth=ruby-test-auth&pnsdk=PubNub-Ruby/4.2.0&t=%7B%22r%22:12,%22t%22:%2215720347890178803%22%7D&uuid=ruby-test-uuid
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: ''
|
46
|
+
headers:
|
47
|
+
User-Agent:
|
48
|
+
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
49
|
+
Accept:
|
50
|
+
- "*/*"
|
51
|
+
Date:
|
52
|
+
- Fri, 25 Oct 2019 20:20:13 GMT
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
Date:
|
59
|
+
- Fri, 25 Oct 2019 20:20:18 GMT
|
60
|
+
Content-Type:
|
61
|
+
- text/javascript; charset="UTF-8"
|
62
|
+
Content-Length:
|
63
|
+
- '422'
|
64
|
+
Connection:
|
65
|
+
- keep-alive
|
66
|
+
Cache-Control:
|
67
|
+
- no-cache
|
68
|
+
Access-Control-Allow-Origin:
|
69
|
+
- "*"
|
70
|
+
Access-Control-Allow-Methods:
|
71
|
+
- GET
|
72
|
+
body:
|
73
|
+
encoding: UTF-8
|
74
|
+
string: '{"t":{"t":"15720348183193928","r":12},"m":[{"a":"3","f":0,"e":2,"p":{"t":"15720348182752121","r":2},"k":"sub-a-mock-key","c":"rb_space_4","d":{"source":"objects","version":"1.0","event":"create","type":"membership","data":{"created":"2019-10-25T20:20:18.257654837Z","custom":null,"eTag":"AY39mJKK//C0VA","spaceId":"rb_space_4","updated":"2019-10-25T20:20:18.257654837Z","userId":"user_mg4"}}}]}'
|
75
|
+
http_version:
|
76
|
+
recorded_at: Fri, 25 Oct 2019 20:20:15 GMT
|
77
|
+
recorded_with: VCR 5.0.0
|
@@ -0,0 +1,77 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://ps.pndsn.com/v2/subscribe/sub-a-mock-key/rb_space_4/0?auth=ruby-test-auth&pnsdk=PubNub-Ruby/4.2.0&t=%7B%22r%22:0,%22t%22:0%7D&uuid=ruby-test-uuid
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Fri, 25 Oct 2019 20:22:50 GMT
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Fri, 25 Oct 2019 20:22:53 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/javascript; charset="UTF-8"
|
25
|
+
Content-Length:
|
26
|
+
- '45'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Allow-Methods:
|
34
|
+
- GET
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"t":{"t":"15720348183193928","r":12},"m":[]}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Fri, 25 Oct 2019 20:22:50 GMT
|
40
|
+
- request:
|
41
|
+
method: get
|
42
|
+
uri: http://ps.pndsn.com/v2/subscribe/sub-a-mock-key/rb_space_4/0?auth=ruby-test-auth&pnsdk=PubNub-Ruby/4.2.0&t=%7B%22r%22:12,%22t%22:%2215720348183193928%22%7D&uuid=ruby-test-uuid
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: ''
|
46
|
+
headers:
|
47
|
+
User-Agent:
|
48
|
+
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
49
|
+
Accept:
|
50
|
+
- "*/*"
|
51
|
+
Date:
|
52
|
+
- Fri, 25 Oct 2019 20:22:50 GMT
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
Date:
|
59
|
+
- Fri, 25 Oct 2019 20:22:57 GMT
|
60
|
+
Content-Type:
|
61
|
+
- text/javascript; charset="UTF-8"
|
62
|
+
Content-Length:
|
63
|
+
- '298'
|
64
|
+
Connection:
|
65
|
+
- keep-alive
|
66
|
+
Cache-Control:
|
67
|
+
- no-cache
|
68
|
+
Access-Control-Allow-Origin:
|
69
|
+
- "*"
|
70
|
+
Access-Control-Allow-Methods:
|
71
|
+
- GET
|
72
|
+
body:
|
73
|
+
encoding: UTF-8
|
74
|
+
string: '{"t":{"t":"15720349772458715","r":12},"m":[{"a":"3","f":0,"e":2,"p":{"t":"15720349772035051","r":2},"k":"sub-a-mock-key","c":"rb_space_4","d":{"source":"objects","version":"1.0","event":"delete","type":"membership","data":{"spaceId":"rb_space_4","userId":"user_mg4"}}}]}'
|
75
|
+
http_version:
|
76
|
+
recorded_at: Fri, 25 Oct 2019 20:22:54 GMT
|
77
|
+
recorded_with: VCR 5.0.0
|
@@ -0,0 +1,77 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://ps.pndsn.com/v2/subscribe/sub-a-mock-key/user_mg4/0?auth=ruby-test-auth&pnsdk=PubNub-Ruby/4.2.0&t=%7B%22r%22:0,%22t%22:0%7D&uuid=ruby-test-uuid
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Fri, 25 Oct 2019 20:26:00 GMT
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Fri, 25 Oct 2019 20:26:03 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/javascript; charset="UTF-8"
|
25
|
+
Content-Length:
|
26
|
+
- '45'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Allow-Methods:
|
34
|
+
- GET
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"t":{"t":"15720349772128587","r":12},"m":[]}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Fri, 25 Oct 2019 20:26:00 GMT
|
40
|
+
- request:
|
41
|
+
method: get
|
42
|
+
uri: http://ps.pndsn.com/v2/subscribe/sub-a-mock-key/user_mg4/0?auth=ruby-test-auth&pnsdk=PubNub-Ruby/4.2.0&t=%7B%22r%22:12,%22t%22:%2215720349772128587%22%7D&uuid=ruby-test-uuid
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: ''
|
46
|
+
headers:
|
47
|
+
User-Agent:
|
48
|
+
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
49
|
+
Accept:
|
50
|
+
- "*/*"
|
51
|
+
Date:
|
52
|
+
- Fri, 25 Oct 2019 20:26:00 GMT
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
Date:
|
59
|
+
- Fri, 25 Oct 2019 20:26:06 GMT
|
60
|
+
Content-Type:
|
61
|
+
- text/javascript; charset="UTF-8"
|
62
|
+
Content-Length:
|
63
|
+
- '420'
|
64
|
+
Connection:
|
65
|
+
- keep-alive
|
66
|
+
Cache-Control:
|
67
|
+
- no-cache
|
68
|
+
Access-Control-Allow-Origin:
|
69
|
+
- "*"
|
70
|
+
Access-Control-Allow-Methods:
|
71
|
+
- GET
|
72
|
+
body:
|
73
|
+
encoding: UTF-8
|
74
|
+
string: '{"t":{"t":"15720351664523185","r":12},"m":[{"a":"3","f":0,"e":2,"p":{"t":"15720351664083594","r":2},"k":"sub-a-mock-key","c":"user_mg4","d":{"source":"objects","version":"1.0","event":"create","type":"membership","data":{"created":"2019-10-25T20:26:06.392141731Z","custom":null,"eTag":"AY39mJKK//C0VA","spaceId":"rb_space_4","updated":"2019-10-25T20:26:06.392141731Z","userId":"user_mg4"}}}]}'
|
75
|
+
http_version:
|
76
|
+
recorded_at: Fri, 25 Oct 2019 20:26:03 GMT
|
77
|
+
recorded_with: VCR 5.0.0
|
@@ -0,0 +1,77 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://ps.pndsn.com/v2/subscribe/sub-a-mock-key/user_mg4/0?auth=ruby-test-auth&pnsdk=PubNub-Ruby/4.2.0&t=%7B%22r%22:0,%22t%22:0%7D&uuid=ruby-test-uuid
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
Date:
|
15
|
+
- Fri, 25 Oct 2019 20:28:18 GMT
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Fri, 25 Oct 2019 20:28:20 GMT
|
23
|
+
Content-Type:
|
24
|
+
- text/javascript; charset="UTF-8"
|
25
|
+
Content-Length:
|
26
|
+
- '45'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Allow-Methods:
|
34
|
+
- GET
|
35
|
+
body:
|
36
|
+
encoding: UTF-8
|
37
|
+
string: '{"t":{"t":"15720351664523185","r":12},"m":[]}'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Fri, 25 Oct 2019 20:28:18 GMT
|
40
|
+
- request:
|
41
|
+
method: get
|
42
|
+
uri: http://ps.pndsn.com/v2/subscribe/sub-a-mock-key/user_mg4/0?auth=ruby-test-auth&pnsdk=PubNub-Ruby/4.2.0&t=%7B%22r%22:12,%22t%22:%2215720351664523185%22%7D&uuid=ruby-test-uuid
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: ''
|
46
|
+
headers:
|
47
|
+
User-Agent:
|
48
|
+
- HTTPClient/1.0 (2.8.3, ruby 2.6.3 (2019-04-16))
|
49
|
+
Accept:
|
50
|
+
- "*/*"
|
51
|
+
Date:
|
52
|
+
- Fri, 25 Oct 2019 20:28:18 GMT
|
53
|
+
response:
|
54
|
+
status:
|
55
|
+
code: 200
|
56
|
+
message: OK
|
57
|
+
headers:
|
58
|
+
Date:
|
59
|
+
- Fri, 25 Oct 2019 20:28:26 GMT
|
60
|
+
Content-Type:
|
61
|
+
- text/javascript; charset="UTF-8"
|
62
|
+
Content-Length:
|
63
|
+
- '296'
|
64
|
+
Connection:
|
65
|
+
- keep-alive
|
66
|
+
Cache-Control:
|
67
|
+
- no-cache
|
68
|
+
Access-Control-Allow-Origin:
|
69
|
+
- "*"
|
70
|
+
Access-Control-Allow-Methods:
|
71
|
+
- GET
|
72
|
+
body:
|
73
|
+
encoding: UTF-8
|
74
|
+
string: '{"t":{"t":"15720353067806096","r":12},"m":[{"a":"3","f":0,"e":2,"p":{"t":"15720353067365917","r":2},"k":"sub-a-mock-key","c":"user_mg4","d":{"source":"objects","version":"1.0","event":"delete","type":"membership","data":{"spaceId":"rb_space_4","userId":"user_mg4"}}}]}'
|
75
|
+
http_version:
|
76
|
+
recorded_at: Fri, 25 Oct 2019 20:28:24 GMT
|
77
|
+
recorded_with: VCR 5.0.0
|