How to use installed middlewares in tRPC?

There are a lot of middlewares from npm that I am using like helmet, session and so on.

What is the recommended way adding these middlewares in my tRPC app?

can you show a simple example?
Was this page helpful?