corda / net.corda.node.services.messaging / NodeMessagingClient / run

# run

`fun run(): Unit`

Starts the p2p event loop: this method only returns once stop has been called.

This actually runs as two sequential loops. The first subscribes for and receives only network map messages until we get our network map fetch response. At that point the filtering consumer is closed and we proceed to the second loop and consume all messages via a new consumer without a filter applied.