ServiceMap: Record<string, unknown>

A map of user defined services available on the libp2p node via the services key

Example

const node = await createLibp2p({
// ...other options
services: {
myService: myService({
// ...service options
})
}
})

// invoke methods on the service
node.services.myService.anOperation()