cometd: autoBatch doesn't work
I’m not sure I correctly understand what autoBatch in JavaScript should do, but even when I set it to false, CometD batches a bunch of subscription/publishing messages that I do before the handshake is complete into one big websocket message and sends them over. This causes the dreaded The decoded text message was too big for the output buffer and the endpoint does not support partial messages error. Am I missing something and is there some way I could make CometD not do that? CometD version is 3.1.10.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (8 by maintainers)
remote.deliver(...)will enqueue the message on the session, and will try to flush it. The flush may happen later (e.g. lazy channel) and possibly in another thread (e.g. waking up a suspended/meta/connect), so the sender won’t know if the transport failed to write the messages.