Using the latest features of nextjs
- NextAuth Athentication with Google & Github
- Server Actions
- Optimistic Updates (useOptimistic)
Real-time communication using Pusher
I'm using useEffect to subscribe to the 'messages' channel but this line
const channel = clientPusher.subscribe('messages');
throws this error
Application error: a client-side exception has occurred (see the browser console for more information).