Skip to content

Should relays send back a CLOSED message after the client sends CLOSE? #1887

Open
@alexgleason

Description

@alexgleason
  • Client: ["REQ", "123", ...]
  • Relay: ["EVENT", "a", ...], ["EVENT", "b", ...], etc...
  • Relay: ["EOSE", "123"]
  • Client: ["CLOSE", "123"]
  • Relay: ["CLOSED", "123"] (maybe? this is the question)

When writing the code, the relay naturally wanted to send a CLOSED message after the client sent CLOSE. I did extra work to prevent it from sending the extra CLOSED message, by checking whether it was a client-initiated or relay-initiated close.

But maybe it should send CLOSED? It's redundant. Or maybe it's useful information to know that the relay respected the close.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions