Question from the Nest.js test

Explain the use of the `switchToHttp` or `switchToWs` methods in a Nest.js guard or interceptor.

Easy

In what situations would you use the switchToHttp or switchToWs methods in a Nest.js guard or interceptor?

Author: AxelStatus: PublishedQuestion passed 389 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!