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() {