addFrame method
Adds a frame to this transaction
Implementation
void addFrame(StompFrame frame) {
if (!isActive) {
throw StompTransactionException('Cannot add frame to inactive transaction', id);
}
// Validate that the frame can be part of a transaction
if (!_canBeTransactional(frame)) {
throw StompTransactionException('Frame ${frame.command} cannot be part of a transaction', id);
}
_frames.add(frame.copy());
}