Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Losing sub connection after some time #411

Open
lschaupp opened this issue Jun 26, 2024 · 1 comment
Open

Losing sub connection after some time #411

lschaupp opened this issue Jun 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@lschaupp
Copy link

I am losing the subscription connection and I don't know what the cause is.
I am using PyBridge for the bridge between Javascript and Python.
PyBridge is reporting a timeout after a couple of hours of connection.
Is my current setup even correct?:

            from javascript import require
            self.js_createClient = require("@supabase/supabase-js").createClient
            self.realtime = self.js_createClient(url, SERVICE_API, {
                "db": {
                    "schema": 'public',
                },
                "auth": {
                    "autoRefreshToken": True,
                    "persistSession": True,
                    "detectSessionInUrl": True,
                    "headers": {
                        "apikey": 'custom-supabase-signed-jwt-token',
                    },
                    "params": {
                        "apikey": SERVICE_API,
                    },
                },
                "realtime": {
                    "log_level": "info",
                },
                # "global": {
                #    "fetch": "customFetch",
                #    "headers": "DEFAULT_HEADERS",
                # },
            })
            self.realtime.realtime.setAuth(SERVICE_API)
@lschaupp lschaupp added the bug Something isn't working label Jun 26, 2024
@filipecabaco
Copy link
Contributor

You now have realtime-py available, could you try it?
https://github.com/supabase/realtime-py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants