💬 Tech Support & Safety Hub

Resolving Issue With Pusher Not Notifying Promptly

d

diltony@yahoo.com

Jan 2, 2026 at 2:56 PM

0 replies 168 views
How to patch pusher not dispatching messages to users in flarum setup:

Manually patch this:
vendor[s]\[/s]\flarum[s]\[/s]\pusher[s]\[/s]\js[s]\[/s]\src[s]\[/s]\forum[s]\[/s]\index.tsx

app.pusher.then((binding: PusherBinding) => {

[s]```[/s]
const channels = binding.channels;
if (channels.user) {
channels.user.bind('notification', () => {
if (app.session.user) {
app.session.user.pushAttributes({
//unreadNotificationCount: app.session.user.unreadNotificationCount() ?? 0 + 1,
unreadNotificationCount: (app.session.user.unreadNotificationCount() ?? 0) + 1,
//newNotificationCount: app.session.user.newNotificationCount() ?? 0 + 1,
newNotificationCount: (app.session.user.newNotificationCount() ?? 0) + 1,
});
}
app.notifications.clear();
m.redraw();
});
}
```
});

Image

0 Replies

Sign in to join the conversation

💭

No replies yet

Be the first to share your thoughts on this discussion.