didOpen method Null safety

Future didOpen()

Invoked when this server becomes ready receive requests.

ApplicationChannel.willStartReceivingRequests is invoked after this opening has completed.

Implementation

Future didOpen() async {
  server!.serverHeader = "conduit/$identifier";

  logger.fine("ApplicationServer($identifier).didOpen start listening");
  server!.map((baseReq) => Request(baseReq)).listen(entryPoint.receive);

  channel.willStartReceivingRequests();
  logger.info("Server conduit/$identifier started.");
}