onAttached

abstract fun onAttached(middlewareContext: C)

Invoked when the middleware is active. Use this method to initialize or set functionality like coroutine scopes, listeners, etc.

Parameters

middlewareContext

Provides context about the current state and configuration.