Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

cameronasmith's avatar

How to use pusher for user to user communication.

I'm using pusher in part of my Laravel application as a chat service. My question is how do I only send events to a specific user?

The worse case scenario I thought about was set the channel to the user_id and when a new message don't send the message just tell jQuery to reload the page. But, i'd prefer a better option than this.

Thanks,

Cameron

0 likes
1 reply

Please or to participate in this conversation.