Skip to content

Commit 0e1981a

Browse files
RobertCraigiestainless-app[bot]
authored andcommitted
fix(realtime): correct websocket type var constraint (#1321)
1 parent 0ea7238 commit 0e1981a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/beta/realtime/websocket.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface MessageEvent {
1111
type _WebSocket =
1212
typeof globalThis extends (
1313
{
14-
WebSocket: infer ws;
14+
WebSocket: infer ws extends abstract new (...args: any) => any;
1515
}
1616
) ?
1717
// @ts-ignore

0 commit comments

Comments
 (0)