SSEInterceptor constructor

SSEInterceptor(
  1. Set<WatchEvent> watchEvents,
  2. SSEResponse intercept(
    1. SSEChain chain,
    2. SSEResponse response
    ), {
  3. AutoClearStrategy autoClearStrategy = AutoClearStrategy.stream,
  4. String name = "unknown",
  5. SSEInterceptorLifeCycle? lifeCycle,
  6. bool goThrough = false,
  7. bool isPeek = false,
})

Implementation

SSEInterceptor(this.watchEvents, this.intercept,
    {this.autoClearStrategy = AutoClearStrategy.stream,
    this.name = "unknown",
    this.lifeCycle,
    this.goThrough = false,
    this.isPeek = false});