Rank 1: Thread
Hey guys, i am using this code to access my database using realtime
client.subscribe('databases.[ID].collections.[ID].documents.create', (payload: any) => { console.log(payload) }) I have replaced the [ID] for the corresponding ID i dont know what is the problem.
this is the errors i am getting
WebSocket connection to 'wss:///v1/realtime?project=ID&channels%5B%5D=collections.6406910f7d0377e9d2.documents.create&channels%5B%5D=collections.642607b69f346b1aac6d.documents.create&channels%5B%5D=databases.642607ad8b10bc1f0b79.collections.642607b69f346b1aac6d.documents.create' failed: createSocket @ client.ts:235 (anonymous) @ client.ts:257 client.ts:253 Realtime got disconnected. Reconnect will be attempted in 10 seconds.