public boolean shouldIgnoreMessages() {
        if (this.socket.isClosed()) {
            return true;
        }

        if (!this.socket.getSender().isValid()) {
            this.socket.close();
            return true;
        }

        return false;
    }
Checks if incoming messages should be ignored.

@return true if messages should be ignored
common/src/main/java/me/lucko/luckperms/common/webeditor/socket/listener/WebEditorSocketListener.java