Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
otm:ordering_of_messages:discard_early [2011/06/27 05:43] aspectscript |
otm:ordering_of_messages:discard_early [2011/06/27 05:47] aspectscript |
||
---|---|---|---|
Line 16: | Line 16: | ||
</ | </ | ||
- | The DiscardEarly | + | The Discard Early strategy is implemented as a TM advice, which is a JavaScript function, that is executed every time the response is retrieved: |
<code javascript> | <code javascript> | ||
Line 25: | Line 25: | ||
} | } | ||
} | } | ||
+ | |||
+ | var discardEarlyCallback = function(callback) { | ||
+ | return function(jp, | ||
+ | discardEarly.call(this, | ||
+ | var request = jp.target; | ||
+ | //Is it discarded? | ||
+ | if (this.idServerRespExpected < request.idServerResp) | ||
+ | | ||
+ | } | ||
+ | }; | ||
</ | </ | ||
Go back [[otm/ | Go back [[otm/ |