Using Pusher with app router

Hey all, I worked on a project that used Pusher with the page router, following https://github.com/pingdotgg/zapdos/blob/main/src/pages/index.tsx#L398 as an example - I was wondering if anyone had tried using this on an app router application? I was hoping that I could just stick the Pusher part of the application in a "use client" component and it would work properly, but I'm getting all sorts of errors. Does anyone have any examples of how this might work in practise? I've pushed up my branch to https://github.com/hyhydev/Scout/tree/add-pusher if anyone has time to take a look, see src/utils/pusher, src/server/common/pusher and src/components/pusher/pusherWrapper.tsx for use Thank you
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server