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
- SMS OTP not delivered to Australian (+61...
Hey team! I'm having an issue with SMS OTP delivery to Australian phone numbers in my Appwrite Cloud project. What's happening: account.createPhoneToken() co...
- Deploying to Sites will not work. NextJS
It’s been many times I have attempted to deploy to Appwrite and it’s always failed. The deployment itself works, the logs show it works perfectly, however when ...
- Team Preferences Invisible on Console
Hello, I got the problem that team preferences are not visible within the Appwrite console. I did an API request to verify that there are preferences set and on...