Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EchoInterceptor

An http interceptor to automatically add the socket ID header, use this as something like (or use the AngularLaravelEchoModule.forRoot method):

@NgModule({
  ...
  providers: [
    ...
    { provide: HTTP_INTERCEPTORS, useClass: EchoInterceptor, multi: true }
    ...
  ]
  ...
})

Hierarchy

  • EchoInterceptor

Implements

  • HttpInterceptor

Index

Constructors

Methods

Constructors

constructor

Methods

intercept

  • intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>