From 9ec27c1202bf8e625e4904fb0b4544fb7bff83c2 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Fri, 19 Jan 2024 23:34:25 -0800 Subject: [PATCH] [ntcore] Don't disconnect with 1005 error code (#6265) --- ntcore/src/main/native/cpp/net/WebSocketConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntcore/src/main/native/cpp/net/WebSocketConnection.cpp b/ntcore/src/main/native/cpp/net/WebSocketConnection.cpp index e8e0f65176..e97d2fd0c1 100644 --- a/ntcore/src/main/native/cpp/net/WebSocketConnection.cpp +++ b/ntcore/src/main/native/cpp/net/WebSocketConnection.cpp @@ -268,7 +268,7 @@ void WebSocketConnection::Send( void WebSocketConnection::Disconnect(std::string_view reason) { m_reason = reason; - m_ws.Fail(1005, reason); + m_ws.Fail(1001, reason); } wpi::uv::Buffer WebSocketConnection::AllocBuf() {