Mercurial > libervia-pubsub
comparison sat_pubsub/backend.py @ 452:8da3db1e82a9
backend: advertise RSM on disco
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 02 Jul 2021 15:18:09 +0200 |
parents | 074037832daf |
children | 1a179ad10125 |
comparison
equal
deleted
inserted
replaced
451:0e6e176cb572 | 452:8da3db1e82a9 |
---|---|
1849 class ExtraDiscoHandler(XMPPHandler): | 1849 class ExtraDiscoHandler(XMPPHandler): |
1850 # see comment in twisted/plugins/pubsub.py | 1850 # see comment in twisted/plugins/pubsub.py |
1851 # FIXME: upstream must be fixed so we can use custom (non pubsub#) disco features | 1851 # FIXME: upstream must be fixed so we can use custom (non pubsub#) disco features |
1852 | 1852 |
1853 def getDiscoInfo(self, requestor, service, nodeIdentifier=''): | 1853 def getDiscoInfo(self, requestor, service, nodeIdentifier=''): |
1854 return [disco.DiscoFeature(pubsub.NS_ORDER_BY), disco.DiscoFeature(const.NS_FDP)] | 1854 return [ |
1855 disco.DiscoFeature(rsm.NS_RSM), | |
1856 # cf. https://xmpp.org/extensions/xep-0060.html#subscriber-retrieve-returnsome | |
1857 disco.DiscoFeature(const.NS_PUBSUB_RSM), | |
1858 disco.DiscoFeature(pubsub.NS_ORDER_BY), | |
1859 disco.DiscoFeature(const.NS_FDP) | |
1860 ] | |
1855 | 1861 |
1856 def getDiscoItems(self, requestor, service, nodeIdentifier=''): | 1862 def getDiscoItems(self, requestor, service, nodeIdentifier=''): |
1857 return [] | 1863 return [] |