We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8ff8d6 commit ae553ccCopy full SHA for ae553cc
templates/web/src/client.ts.twig
@@ -129,6 +129,8 @@ type RealtimeRequestAuthenticate = {
129
session: string;
130
}
131
132
+type TimeoutHandle = ReturnType<typeof setTimeout> | number;
133
+
134
/**
135
* Realtime interface representing the structure of a realtime communication object.
136
*/
@@ -141,12 +143,12 @@ type Realtime = {
141
143
142
144
* Timeout for reconnect operations.
145
- timeout?: ReturnType<typeof setTimeout>;
146
+ timeout?: TimeoutHandle;
147
148
149
* Heartbeat interval for the realtime connection.
150
- heartbeat?: ReturnType<typeof setTimeout>;
151
+ heartbeat?: TimeoutHandle;
152
153
154
* URL for establishing the WebSocket connection.
0 commit comments