addLibp2pEventListener
addLibp2pEventListener: (<K>(type: K, listener: null | EventHandler<Libp2pEvents<ServiceMap>[K]>, options?: boolean | AddEventListenerOptions) => void)
Type declaration
-
- <K>(type: K, listener: null | EventHandler<Libp2pEvents<ServiceMap>[K]>, options?: boolean | AddEventListenerOptions): void
-
Type Parameters
-
K extends keyof Libp2pEvents<ServiceMap>
Parameters
-
type: K
-
listener: null | EventHandler<Libp2pEvents<ServiceMap>[K]>
-
Optional
options: boolean | AddEventListenerOptions
Returns void