Skip to content

Commit bd5282f

Browse files
fmt
1 parent ee4822b commit bd5282f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/engine.io/lib/server.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ interface ConnectionError {
7373
}
7474

7575
interface ServerReservedEvents {
76-
connection: (socket: Socket, request: Request, connInfo: Deno.ServeHandlerInfo) => void;
76+
connection: (
77+
socket: Socket,
78+
request: Request,
79+
connInfo: Deno.ServeHandlerInfo,
80+
) => void;
7781
connection_error: (err: ConnectionError) => void;
7882
}
7983

@@ -125,7 +129,10 @@ export class Server extends EventEmitter<
125129
* @param additionalHandler - another handler which will receive the request if the path does not match
126130
*/
127131
public handler(additionalHandler?: Deno.ServeHandler) {
128-
return (req: Request, connInfo: Deno.ServeHandlerInfo): Response | Promise<Response> => {
132+
return (
133+
req: Request,
134+
connInfo: Deno.ServeHandlerInfo,
135+
): Response | Promise<Response> => {
129136
const url = new URL(req.url);
130137
if (url.pathname === this.opts.path) {
131138
return this.handleRequest(req, connInfo, url);

0 commit comments

Comments
 (0)