proudmonkey / AutoWrapper

A simple, yet customizable global exception handler and Http response wrapper for ASP.NET Core APIs.
MIT License
677 stars 82 forks source link

Should Websocket requests be ignored, like Swagger? #109

Open frostless opened 3 years ago

frostless commented 3 years ago

Handling websocket requests seem to be a bit tricky due to this protocol's nature. The log files will be flooded with websocket-related messsages and I usually get this "The response has already started, the AutoWrapper middleware will not be executed" error. At least add an option(global or action-level) to filter them out?

proudmonkey commented 3 years ago

Hi,

Have you tried looking into the ExcludePaths property to ignore a particular path for websockets?

https://github.com/proudmonkey/AutoWrapper#exclude-paths