Added "flush()" method to "ChatConnection".