Implement waitForBytesWritten for the websockets case


Not implementing this function causes a lot if Invalid Socket
Specified in the tests.

Also fixed a problem with broker_connection.h where
DefaultVersionTestData did not evaluate to version(0)
if MQTT_TEST_PROTOCOL was defined.

Fixes: QTBUG-137305
Pick-to: 6.10
Change-Id: I4b825196548a3f5bf07c3bb4203a0b46033004ba
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
commit635ae612f153d0ba00ecb8cee7bdce5a4b218d99
parent2c9be38a7ca9888032ac1f9bd7bb614a8e5585ad
authorEven Oscar Andersen <even.oscar.andersen@qt.io>
committerEven Oscar Andersen <even.oscar.andersen@qt.io>
commit timeWed, 10 Sep 2025 11:39:48 +0200