Class CloseReason

java.lang.Object
jakarta.websocket.CloseReason

public class CloseReason extends Object
A class encapsulating the reason why a web socket has been closed, or why it is being asked to close. Note the acceptable uses of codes and reason phrase are defined in more detail by RFC 6455.