3 const remoteAddress
= '127.0.0.10';
4 const callbackUrl
= 'https://example.com/consume?id=123&token=abc';
5 const topicUrl
= 'https://example.com/some_blog';
6 const modePublish
= 'publish';
7 const modeSubscribe
= 'subscribe';
11 clientAddress: remoteAddress
,
12 clientProtocol: 'https',
14 'hub.mode': modeSubscribe
,
15 'hub.callback': callbackUrl
,
16 'hub.topic': topicUrl
,
17 'hub.extra': 'unused value',
18 'hub.lease_seconds': '864000',
19 'hub.secret': 'such secret',
23 callback: callbackUrl
,
27 secret: 'such secret',
28 httpRemoteAddr: remoteAddress
,
29 httpFrom: 'user@example.com',
31 isPublisherValidated: true,
33 validUnsubscribeCtx: {
34 clientAddress: remoteAddress
,
35 clientProtocol: 'https',
37 'hub.mode': 'unsubscribe',
38 'hub.callback': callbackUrl
,
39 'hub.topic': topicUrl
,
43 clientAddress: remoteAddress
,
44 clientProtocol: 'https',
46 'hub.mode': modePublish
,
47 'hub.topic': topicUrl
,
50 validPublishRootData: {
51 httpRemoteAddr: remoteAddress
,