For future readers who wanted to "connect to a wss" instead of serving one, you can use HttpClient#wss instead of HttpClient#webSocket
HttpClient#wss
HttpClient#webSocket