Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proxyserver: add support for UnifiedPush standard #636

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

AmarOk1412
Copy link
Member

Make the proxy able to support the UnifiedPush platform, so that applications using the proxy server can use any UnifiedPush provider.

Documentation: https://unifiedpush.org/

How to test:

  • Install a UnifiedPush provider on a device (e.g. https://ntfy.sh)
  • Run dhtnode with a proxyserver and --unifiedpush https://ntfy.sh
  • Subscribe to a random topic on ntfy (e.g. "dhtproxytest")
  • Subscribe to a hash on the DHT: curl -X SUBSCRIBE http://my.dht.proxy:8000/key/foo \ -d '{"key":"dhtproxytest", "platform":"unifiedpush"}'
  • Send data on the subscribed hash

Note: the topic should be completely random.

Make the proxy able to support the UnifiedPush platform, so that
applications using the proxy server can use any UnifiedPush provider.

Documentation: https://unifiedpush.org/

How to test:
+ Install a UnifiedPush provider on a device (e.g. https://ntfy.sh)
+ Run dhtnode with a proxyserver and --unifiedpush https://ntfy.sh
+ Subscribe to a random topic on ntfy (e.g. "dhtproxytest")
+ Subscribe to a hash on the DHT:
    curl -X SUBSCRIBE http://my.dht.proxy:8000/key/foo \
         -d '{"key":"dhtproxytest", "platform":"unifiedpush"}'
+ Send data on the subscribed hash

Note: the topic should be completely random.
@aberaud aberaud merged commit b9ccc96 into savoirfairelinux:master Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants