I can help! Your SSE endpoint isn't sending valid Server-Sent Events format. The browser expects a specific format with Content-Type: text/event-stream and data in the SSE format (data: ...\n\n), but it's getting something else instead.
What does your /api/slack/stream endpoint currently return? Can you share the code that handles that route?
#Does Appwrite allow SSE ?
3 messages · Page 1 of 1 (latest)
I can see your frontend code, but I need to see the backend code the actual /api/slack/stream endpoint that's supposed to return the SSE stream.
The issue is on the server side. Your endpoint needs to:
Set headers: Content-Type: text/event-stream
Send data in SSE format: data: {...}\n\n
Keep the connection open
Can you share the server-side code that handles the /api/slack/stream route? That's where the problem is.
AH you mean these.