From 2e3793484f5086df0767407cb8ef464c77ab83f5 Mon Sep 17 00:00:00 2001
From: Simon McVittie This library is free software; you can redistribute it and/or
@@ -22,9 +22,7 @@
Submit a message to the server for sending, like the
+ If the Account is connected and a Text channel to the
+ Target_ID already exists, this method is equivalent to
+ sending the same message via that channel. Otherwise, this method creates a channel (connecting the
+ Account if appropriate), sends the desired message, and
+ closes the channel as if via If any messages are received on that channel before it is
+ closed, a correct connection manager implementation will reopen
+ the channel when it is closed, resulting in those "rescued" messages
+ being processed by the system's normal Expecting a trivial client (perhaps a send-only IRC bot,
+ or a simple SMS-sending API) to go through all those steps to
+ send a message seems somewhat unreasonable. Having this as a
+ method in the ChannelDispatcher lets it take some short-cuts if
+ required, and centralizes the implementation to reduce the risk of
+ mistakes that cause message loss. The ChannelDispatcher SHOULD support this method for any
+ connection manager that would accept channel requests of this
+ form: However, if the connection manager provides additional APIs
+ (such as a way to open "send-only" channels), the
+ ChannelDispatcher MAY use those: it is not required to use
+ those exact request parameters. This method may raise any error that would be raised by the
+ {
+ …
+
+