onStart method

Future<void> onStart(
  1. RpcContainer container
)

Called after every module is configured and before the server accepts a connection, in dependency order.

Use this to open background connections, start timers, subscribe to message queues, etc. RpcServerModule.buildContracts runs per connection, after every onStart, so it can use what this provides.

Implementation

Future<void> onStart(RpcContainer container) async {}