f897507b09
Motivation: We need to fail the promise if a failure during handshake happens. Modification: Correctly fail the promise. Result: Correct websocket client example. Fixes [#6998]