@brittle sand curious where you read this as I've seen many users believe this but it's not actually true, you have to actually send the EOS "" to get isfinal true
to be clear, we set isFinal = true with this condition "if not msg.text and not flush_flag". so almost exactly the opposite of what i orginally said. you need the flush flag not set and you need to send the closing "" to get isFinal