diff --git a/src/context/notifications.tsx b/src/context/notifications.tsx index 37e7c42a..b7986970 100644 --- a/src/context/notifications.tsx +++ b/src/context/notifications.tsx @@ -98,8 +98,8 @@ export const NotificationsProvider = (props: { children: JSX.Element }) => { const eventSource = new EventSource(`https://chat.discours.io/connect/?token=${token}`) eventSource.onmessage = (event) => { + console.log('[context.notifications] Received event:', event) const n: { kind: string; payload: any } = JSON.parse(event.data) - console.log('[context.notifications] Received notification:', n) if (n.kind === 'new_message') { messageHandler()(n.payload) } else {