diff --git a/components/net/cpp/src/ws_internal.cpp b/components/net/cpp/src/ws_internal.cpp index 780a54c65475653c5aef922f04e41dca5b2579b2..28318ab5b3291e2941298f1ebb7defd0636d134e 100644 --- a/components/net/cpp/src/ws_internal.cpp +++ b/components/net/cpp/src/ws_internal.cpp @@ -210,6 +210,8 @@ bool ftl::net::ws_connect(SOCKET sockfd, const URI &uri, const ws_options &optio http += "Sec-WebSocket-Key: x3JJHMbDL1EzLkh9GBhXDw==\r\n"; http += "Sec-WebSocket-Version: 13\r\n"; http += "\r\n"; + // TODO: Check/process HTTP response code + int rc = ::send(sockfd, http.c_str(), (int)http.length(), 0); if (rc != (int)http.length()) { LOG(ERROR) << "Could not send Websocket http request... (" << rc << ", " << errno << ")";