comparison libervia/web/server/restricted_bridge.py @ 1534:49ad8dd210d0

server (restricted_bridge): add `message_send` method
author Goffi <goffi@goffi.org>
date Thu, 22 Jun 2023 16:36:18 +0200
parents eb00d593801d
children bc856e74f74d
comparison
equal deleted inserted replaced
1533:285c49d7aad3 1534:49ad8dd210d0
82 "identities_get", entities, metadata_filter, profile) 82 "identities_get", entities, metadata_filter, profile)
83 83
84 async def identities_base_get(self, profile): 84 async def identities_base_get(self, profile):
85 return await self.host.bridge_call( 85 return await self.host.bridge_call(
86 "identities_base_get", profile) 86 "identities_base_get", profile)
87
88 async def message_send(
89 self, to_jid_s, message, subject, mess_type, extra_s,
90 profile
91 ):
92 self.no_service_profile(profile)
93 return await self.host.bridge_call(
94 "message_send", to_jid_s, message, subject, mess_type, extra_s, profile
95 )
87 96
88 async def ps_node_delete(self, service_s, node, profile): 97 async def ps_node_delete(self, service_s, node, profile):
89 self.no_service_profile(profile) 98 self.no_service_profile(profile)
90 return await self.host.bridge_call( 99 return await self.host.bridge_call(
91 "ps_node_delete", service_s, node, profile) 100 "ps_node_delete", service_s, node, profile)