4 months ago
Hi Railway Support, I'm running SurrealDB 2.4.0 on Railway and facing an issue with LIVE queries. Problem: - WebSocket connection works
- Authentication works
- LIVE SELECT subscription returns UUID
- But NO notifications received when records are updated
What I've verified: 1. Same code works perfectly on local SurrealDB (localhost:8000) 2. Table has PERMISSIONS FULL and CHANGEFEED enabled 3. User has EDITOR role 4. Updates via same WebSocket connection don't trigger notifications 5. SurrealDB version: 2.4.0 My Setup: - SurrealDB 2.4.0 on Railway - WebSocket URL: wss://surrealdb-2x-production-622d.up.railway.app/rpc - Using JavaScript SDK with raw WebSocket Question: 1. Is Railway's proxy/load balancer blocking WebSocket push messages? 2. Is SurrealDB running in multi-node mode? (LIVE queries require single-node) 3. Any specific configuration needed for real-time WebSocket features? Test Commands Used: ```javascript // These all succeed: ws.send({method:'use', params:['namespace','database']}) ws.send({method:'signin', params:[{user:'...',pass:'...'}]}) ws.send({method:'live', params:['tablename']}) // Returns UUID // But after this UPDATE, no notification arrives: ws.send({method:'query', params:['UPDATE table:id SET field = value']}) ``` Please advise on configuration needed for LIVE query notifications to work. Thanks!
1 Replies
4 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!