SurrealDB HTTP JWT session scope to WebSocket live-query subscription interoperability
Integration goal Determine whether an authenticated SurrealDB HTTP session, established with a JWT and an active namespace and database scope, carries over to a WebSocket connection used for live-query subscriptions. SurrealDB provides a stateless HTTP endpoint and a stateful WebSocket endpoint. The same JWT can technically authenticate both transports, but