Bugfix: queue clearing
Pre-release
Pre-release
- The outgoing queue wasn't cleared correctly resulting in protocol errors
- Headers for unsecure and secure client have been merged (code deduplication)
- Some unit tests have been added