interface P2PProvider { destroy(err?): void; end(cb?): void; on<T>(event,
handler): this; write(encodedMessage,
done?): void; } Methods
destroy
- destroy(err?): void
Returns void
end
- end(cb?): void
Returns void
on
- on<T>(event, handler): this
Returns this
write
- write(encodedMessage, done?): void
Parameters
- encodedMessage: Uint8Array
Optional
done: P2PHandler
Returns void
Provider interface for P2P protocol responsible for re-assembling full message payloads before delivering them upstream via event emission