registerInterceptor method

void registerInterceptor(
  1. Interceptor action
)

Registers a middleware for methods in GRPC endpoint.

  • action an action function that is called when middleware is invoked.

Implementation

void registerInterceptor(grpc.Interceptor action) {
  if (endpoint != null) {
    endpoint!.registerInterceptor(action);
  }
}