Hello, could you please fix RealtimeResposneEvent, the one in realtime.ts have timestamp: string, but the one in client.ts have timestamp: number, and it causes issues like
import { type RealtimeResponseEvent } from 'appwrite';
await new Realtime(client).subscribe(['lorem', 'ipsum'], (event: RealtimeResponseEvent<T>) => { console.log(event.payload); });
Types of property **timestamp **are incompatible. Type string is not assignable to type number
I can help! The issue is caused by a type mismatch RealtimeResponseEvent has timestamp: string in realtime.ts but timestamp: number in client.ts, creating a conflict when TypeScript tries to reconcile them. Which file has the correct type for your use case - should timestamp be a string or a number?
Recommended threads
- login With OAuth Failed
login With OAuth Failed: when i cliick to login with any of the following (facebook, gmail or apple) am being redirected out of the app to enter my detail, afte...
- Function is not executed
my function for sending email when specific events is triggered is not executed sometimes. sometimes is working properly, i am getting email ...when function i...
- Adding custom domain, verification succe...
I tried multiple times, it always like this. (I added another custom domain, different subdomain with this one, it worked within 20 mins) Could anyone help? ech...