vue-sse icon indicating copy to clipboard operation
vue-sse copied to clipboard

Feature: Add "interceptor"

Open sbernard31 opened this issue 3 years ago • 1 comments

axios library provide an interceptor feature : https://github.com/axios/axios#interceptors

This is a useful idea to be able to apply a generic default behavior to all request. This is pretty useful for example to handle error in a generic way.

Maybe this could be a good feature for vue-sse.

sbernard31 avatar May 17 '21 09:05 sbernard31

Great suggestion! Not much trouble to actually get it added as well, since I already break out each message type into a single handler.

I'll add it to the roadmap.

tserkov avatar May 21 '21 20:05 tserkov