how to broadcast on event for a specific user?
up vote
-3
down vote
favorite
i am trying to build a real-time chat app with laravel and pusher. when i send a message the message is Broadcasting successfully but for all user. i want broadcast the event for a specific user. where the logic implement and what is the logic??
php laravel events broadcast
add a comment |
up vote
-3
down vote
favorite
i am trying to build a real-time chat app with laravel and pusher. when i send a message the message is Broadcasting successfully but for all user. i want broadcast the event for a specific user. where the logic implement and what is the logic??
php laravel events broadcast
Let me give you a hint to lead you in right direction. What is that one thing related to user which uniquely identifies it?
– Farooq Khan
Nov 11 at 6:15
@downvoters, instead of downvoting we should fix such questions by gving them a direction :-)
– Farooq Khan
Nov 11 at 6:15
for identifies a user uniquely there have user id
– jual ahmed
Nov 11 at 6:28
add a comment |
up vote
-3
down vote
favorite
up vote
-3
down vote
favorite
i am trying to build a real-time chat app with laravel and pusher. when i send a message the message is Broadcasting successfully but for all user. i want broadcast the event for a specific user. where the logic implement and what is the logic??
php laravel events broadcast
i am trying to build a real-time chat app with laravel and pusher. when i send a message the message is Broadcasting successfully but for all user. i want broadcast the event for a specific user. where the logic implement and what is the logic??
php laravel events broadcast
php laravel events broadcast
asked Nov 11 at 6:08
jual ahmed
113
113
Let me give you a hint to lead you in right direction. What is that one thing related to user which uniquely identifies it?
– Farooq Khan
Nov 11 at 6:15
@downvoters, instead of downvoting we should fix such questions by gving them a direction :-)
– Farooq Khan
Nov 11 at 6:15
for identifies a user uniquely there have user id
– jual ahmed
Nov 11 at 6:28
add a comment |
Let me give you a hint to lead you in right direction. What is that one thing related to user which uniquely identifies it?
– Farooq Khan
Nov 11 at 6:15
@downvoters, instead of downvoting we should fix such questions by gving them a direction :-)
– Farooq Khan
Nov 11 at 6:15
for identifies a user uniquely there have user id
– jual ahmed
Nov 11 at 6:28
Let me give you a hint to lead you in right direction. What is that one thing related to user which uniquely identifies it?
– Farooq Khan
Nov 11 at 6:15
Let me give you a hint to lead you in right direction. What is that one thing related to user which uniquely identifies it?
– Farooq Khan
Nov 11 at 6:15
@downvoters, instead of downvoting we should fix such questions by gving them a direction :-)
– Farooq Khan
Nov 11 at 6:15
@downvoters, instead of downvoting we should fix such questions by gving them a direction :-)
– Farooq Khan
Nov 11 at 6:15
for identifies a user uniquely there have user id
– jual ahmed
Nov 11 at 6:28
for identifies a user uniquely there have user id
– jual ahmed
Nov 11 at 6:28
add a comment |
2 Answers
2
active
oldest
votes
up vote
1
down vote
which channel you need private or Presence Channels or public channels if you use
you can check this documentation
then check this youtube course will explain all things you will practice on this topic then if you face any thing hard let me know i hope this help you ...
add a comment |
up vote
0
down vote
You should use PrivateChannel. See its document here :
Defining Broadcast Events
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
which channel you need private or Presence Channels or public channels if you use
you can check this documentation
then check this youtube course will explain all things you will practice on this topic then if you face any thing hard let me know i hope this help you ...
add a comment |
up vote
1
down vote
which channel you need private or Presence Channels or public channels if you use
you can check this documentation
then check this youtube course will explain all things you will practice on this topic then if you face any thing hard let me know i hope this help you ...
add a comment |
up vote
1
down vote
up vote
1
down vote
which channel you need private or Presence Channels or public channels if you use
you can check this documentation
then check this youtube course will explain all things you will practice on this topic then if you face any thing hard let me know i hope this help you ...
which channel you need private or Presence Channels or public channels if you use
you can check this documentation
then check this youtube course will explain all things you will practice on this topic then if you face any thing hard let me know i hope this help you ...
answered Nov 11 at 7:22
dola ezz
111
111
add a comment |
add a comment |
up vote
0
down vote
You should use PrivateChannel. See its document here :
Defining Broadcast Events
add a comment |
up vote
0
down vote
You should use PrivateChannel. See its document here :
Defining Broadcast Events
add a comment |
up vote
0
down vote
up vote
0
down vote
You should use PrivateChannel. See its document here :
Defining Broadcast Events
You should use PrivateChannel. See its document here :
Defining Broadcast Events
answered Nov 11 at 7:16
AmirhosseinDZ
30118
30118
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53246298%2fhow-to-broadcast-on-event-for-a-specific-user%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Let me give you a hint to lead you in right direction. What is that one thing related to user which uniquely identifies it?
– Farooq Khan
Nov 11 at 6:15
@downvoters, instead of downvoting we should fix such questions by gving them a direction :-)
– Farooq Khan
Nov 11 at 6:15
for identifies a user uniquely there have user id
– jual ahmed
Nov 11 at 6:28