Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/VibeDevelopers/Comet.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637BATCH +<reference-tag> <type> [params ...]BATCH -<reference-tag>
BATCH is used to send a batch of commands to the server.Which types of batches are valid to send depends on whichcapabilities the client has requested via the CAP REQcommand and have been confirmed via CAP ACK. Individualbatch types have further restrictions on which commandsare valid within that batch.
A batch must be opened via the first syntax, and closedvia the second syntax. Server-side processing of the batchis postponed until the batch is closed. Commands that arepart of the batch must include the batch message-tagreferencing the reference-tag value which began the batch.If the batch is kept open for 15 seconds, it will time outand be ignored.
Errors with batches use the standard-replies framework viaFAIL commands. The following error codes are used acrossall batch types, and individual batch types may have theirown error codes. Each response additionally has a human-readable error message as the trailing parameter whichvaries to give a more detailed message of what is wrong.
- FAIL BATCH TIMEOUT <reference-tag> The batch was kept open for too long and has timed out.- FAIL BATCH INVALID_NESTING <reference-tag> <parent-type> <type> The parent batch type does not allow batches of this type to be nested under it.- FAIL BATCH INVALID_REFTAG <reference-tag> The reference-tag supplied with the batch is not valid.- FAIL BATCH UNKNOWN_TYPE <reference-tag> <type> The type of batch specified is not valid.- FAIL BATCH INCOMPLETE <reference-tag> An outer batch was closed before a nested inner batch. The reference-tag refers to the inner batch.