Skip to content

Commit

Permalink
[ntcore] Don't disconnect with 1005 error code
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Jan 20, 2024
1 parent a274e29 commit d1bd833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ntcore/src/main/native/cpp/net/WebSocketConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,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() {
Expand Down

0 comments on commit d1bd833

Please sign in to comment.