Separated error() and tcpError() signals: the former is application level error, the latter is transport level error. It allows us to track ConnectionRefused, RemoteHostClosed errors, for example.

Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>
Removed Qt::UniqueConnection in initTcpSocket. Since this function gets called once per TCP socket instance passed to QWsSocket, UniqueConnection is redundant and not needed.

Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>
Added IPv6 address parsing, localhost IPv6 address, removed IPv4 regexp in favor of built-in Qt address parsing.

Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>