say
Delivers typed text into the call the nonce names, through your sendMessage callback. It doesn’t
use up the nonce: typing works until redeem() uses it or nonceTtl seconds pass from
its registration, even if the call is still live. The /say route calls this method.
The call is found by nonce, never by a browser-supplied call id, and no other request field is
forwarded. Surrounding whitespace is removed from the text. Each delivered message takes one of the
call’s maxMessagesPerCall slots; a delivery that throws or returns false gives its slot back.
Parameters
nonce
The nonce the browser presented, registered earlier with register().
text
The typed text. Text over 8 KiB of UTF-8 (MAX_MESSAGE_BYTES), or empty after trimming, isn’t
delivered.
Returns
Promise<boolean> — true when the text was delivered, meaning sendMessage neither threw nor
returned false. false when typing is off (no sendMessage), the text is empty or too large, the
nonce is unknown, expired, or used, the registration has no call id, or the call has reached
maxMessagesPerCall.