Removed the socket created websocket message after handshake. This was causing SSL connections to break.