-
Notifications
You must be signed in to change notification settings - Fork 0
SafeQuit
Safe quit is a bit of code added into the server, that prevents using normal close methods while attached to the standard in/out/err pipes. The way to use this, is when you want to quit the application, the application will notify you once it's ready, this usually happens as soon as it starts up and adds a message into the log output.
To close the application, you can press q
this will run and await all service stop commands, this allows services to run and finish clean-up methods, for example the Discord plugin will unregister all the commands from the guilds it's in, this allows it to keep clean, and the Turbo framework will also kill all active fibres.
Safe quit can be disabled on application start-up for debugging issues, you can add the following node environment variable when calling the application:
DISABLE_READLINE=1 yarn start
- Controllers
- Middleware
- Autowire
- Plugins
- Tasks
- Fibres
- Authentication
- Registry
- Services
- Dependecy Injection
- Translations (i18n)
- Safe Quit
- Exception Handling
- Event Listener
- Custom Logger
- HTTP Plugin - Built-In
- WS Plugin - Built-In
- Discord Plugin - External
- Vite Plugin - External
- Inspect Plugin - External
- CLI Plugin - External
- Got an issue? Join our Discord
- Need your own plugin? Contact Me
- Have an idea? Let's Discuss
- Want to support me? Buy me a coffee