method GrpcService.prototype.close
GrpcService.prototype.close(): void

Releases the built router and its handlers. Afterwards the plugin's own procedures answer 503 instead of rebuilding a router for an application that is shutting down, while every other path falls through untouched.

Return Type

void

Usage

import { GrpcService } from "grpc-plugin/src/index.ts";