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 809ff5f commit 1447e25Copy full SHA for 1447e25
reflex/app.py
@@ -529,6 +529,19 @@ def _setup_state(self) -> None:
529
530
# Set up the Socket.IO AsyncServer.
531
if not self.sio:
532
+ if (
533
+ config.transport == "polling"
534
+ and (tier := prerequisites.get_user_tier()) != "enterprise"
535
+ ):
536
+ console.error(
537
+ "The 'polling' transport is only available for Enterprise users. "
538
+ + (
539
+ "Please upgrade your plan to use this feature."
540
+ if tier != "anonymous"
541
+ else "Please log in with `reflex login` to use this feature."
542
+ )
543
544
+ raise SystemExit(1)
545
self.sio = AsyncServer(
546
async_mode="asgi",
547
cors_allowed_origins=(
0 commit comments