Function init

Function that makes sure that all the necessary components and variables are set up in order to start the server. This function should only be called at the beginning of the server's lifecycle.

  • Returns Result<null, string>

    A result whose error is a string that describes the error that occurred during the initialization process.