diff --git a/src/transports/http.ts b/src/transports/http.ts index 7eb2cd7d..4e10bf8f 100644 --- a/src/transports/http.ts +++ b/src/transports/http.ts @@ -5,7 +5,7 @@ import http, { ServerOptions } from "http"; import ServerTransport, { IJSONRPCRequest } from "./server-transport"; export interface IHTTPServerTransportOptions extends ServerOptions { - middleware: HandleFunction[]; + middleware?: HandleFunction[]; port: number; cors?: cors.CorsOptions; }