addProtocolHandler method

void addProtocolHandler(
  1. RelayProtocolHandler handler
)

Hands handler the messages, CLOSED and NOTICE this manager does not handle itself, and keeps the connections it still needs open.

Implementation

void addProtocolHandler(RelayProtocolHandler handler) =>
    relayManagerParts(this).protocolHandlers.add(handler);