Skip to content

Commit 125c066

Browse files
committed
fix: correct types
1 parent 082e445 commit 125c066

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/startHTTPServer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ const handleSSERequest = async <T extends ServerLike>({
262262
activeTransports: Record<string, SSEServerTransport>;
263263
createServer: (request: http.IncomingMessage) => Promise<T>;
264264
endpoint: string;
265-
onClose?: (server: T) => void;
266-
onConnect?: (server: T) => void;
265+
onClose?: (server: T) => Promise<void>;
266+
onConnect?: (server: T) => Promise<void>;
267267
req: http.IncomingMessage;
268268
res: http.ServerResponse;
269269
}) => {

0 commit comments

Comments
 (0)