From 6553be524fca3e306ef1a43d7d0574d494a1f65a Mon Sep 17 00:00:00 2001 From: Nikhil Rao Date: Sun, 12 Feb 2023 14:53:21 -0800 Subject: [PATCH] Fix websockets (#527) --- pynecone/.templates/web/pcversion.txt | 2 +- pynecone/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pynecone/.templates/web/pcversion.txt b/pynecone/.templates/web/pcversion.txt index 106528b75..99a25fc45 100644 --- a/pynecone/.templates/web/pcversion.txt +++ b/pynecone/.templates/web/pcversion.txt @@ -1 +1 @@ -0.1.15 \ No newline at end of file +0.1.16 \ No newline at end of file diff --git a/pynecone/config.py b/pynecone/config.py index f799febf6..7a9ef787f 100644 --- a/pynecone/config.py +++ b/pynecone/config.py @@ -42,7 +42,7 @@ class Config(Base): # Backend transport methods. backend_transports: Optional[ constants.Transports - ] = constants.Transports.POLLING_WEBSOCKET + ] = constants.Transports.WEBSOCKET_POLLING # List of origins that are allowed to connect to the backend API. cors_allowed_origins: Optional[list] = [constants.CORS_ALLOWED_ORIGINS]