async def send_notification(self, method, args=()): '''Send an RPC notification over the network.''' message = self.connection.send_notification(Notification(method, args)) await self._send_message(message)
def add_notification(self, method, args=()): self._requests.append(Notification(method, args))