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 - Github Student Pack
I have a project on Appwrite Github Student Pack but unable to send any message as I get error: "Phone authentication limit for your organization has exceeded. ...
- Dart runtime functions are timing out an...
My appwrite function is not executing at all and showing the error in error logs: I tried redeploying. Still no luck. I have set the function to ise maximum re...
- AppWrite OSS sponsorship
Hello I have applied for AppWrite OSS sponsorship about a month ago. I haven't received any email response so far. Can you you help me please? My email for appl...