Skip to content

Commit 3d5ba48

Browse files
committed
Clarified comment
1 parent 6b44914 commit 3d5ba48

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/database/src/realtime/TransportManager.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ export class TransportManager {
3939
return [BrowserPollConnection, WebSocketConnection];
4040
}
4141

42-
// Returns whether transport has been selected.
42+
/**
43+
* Returns whether transport has been selected to ensure WebSocketConnection or BrowserPollConnection are not called after
44+
* TransportManager has already set up transports_
45+
*/
4346
static get IS_TRANSPORT_INITIALIZED() {
4447
return this.globalTransportInitialized_;
4548
}

0 commit comments

Comments
 (0)