vic...@hotmail.com a écrit :
onMessageSent is invoked when ONE message is sent, not all message is sent.
yes, but isn't it what you want? Ie, being able to send urgent message
when a stock of less urgent messages are waiting to be written ?
Let's suppose that you send 10 messages to the client, and that you have
one urgent message, then you want this urgent message to be sent after
the current message but before the 9 other ones, no ?
Now, if you send BIG messages and want to stop that in the middle if you
have an urgent message to send to the client, you may want to use
another approach : splitting the BIG message in smaller messages.
Btw, I checked the code, the MessageSent event is really sent when the
current message has been completely flushed, so it will work.