diff --git a/packages/engine.io/lib/server.ts b/packages/engine.io/lib/server.ts index 7a89c4a..208b2f8 100644 --- a/packages/engine.io/lib/server.ts +++ b/packages/engine.io/lib/server.ts @@ -73,7 +73,11 @@ interface ConnectionError { } interface ServerReservedEvents { - connection: (socket: Socket, request: Request, connInfo: Deno.ServeHandlerInfo) => void; + connection: ( + socket: Socket, + request: Request, + connInfo: Deno.ServeHandlerInfo, + ) => void; connection_error: (err: ConnectionError) => void; } @@ -125,7 +129,10 @@ export class Server extends EventEmitter< * @param additionalHandler - another handler which will receive the request if the path does not match */ public handler(additionalHandler?: Deno.ServeHandler) { - return (req: Request, connInfo: Deno.ServeHandlerInfo): Response | Promise => { + return ( + req: Request, + connInfo: Deno.ServeHandlerInfo, + ): Response | Promise => { const url = new URL(req.url); if (url.pathname === this.opts.path) { return this.handleRequest(req, connInfo, url);