Provider interface for P2P protocol responsible for re-assembling full message payloads before delivering them upstream via event emission

interface P2PProvider {
    destroy(err?): void;
    end(cb?): void;
    on<T>(event, handler): this;
    write(encodedMessage, done?): void;
}

Methods