-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use this project to serve the specific-user chatting #3
Comments
@AKhateeb : Hello, we are working on this. Once we done with it, we will commit the required code. |
we are waiting... |
@masoud005 : Sorry, you wait a long. Actually I stopped working on this project currently. |
can you please share me the code for send individual notification? |
@jibinprabha : Sorry, you wait a long. Actually I stopped working on this project currently. |
I try make solution for this issue. `
}` `sendMsg: function (from, target, message) {
|
easy, just use the client id as a reference. |
How do I send message to specific client ? please work on this project to add this functionality, Thanks in Advance |
@abhiburk you just need to send it to the specific socket id |
Can u give me am example ? |
@abhiburk basically I used an array to store client resource ids. Assume we store all connected clients to an array '$clients' and this is the structure of the clients array
and then I just do
|
But what if their are so many users like 10000 say will it iterate through all 10000 for 1 client |
@abhiburk no, we're not using loop there
we're just directly get it from clients array. |
And one thing i am confuse with is how does client id gets store ? |
When client is connected. ` public function __construct() { |
So every client connecting will have diffeent resource id ? And how will i compare my db userid and resource id |
@abhiburk absolutely, every client has their own respective resource id. I can suggest a flow for what you need, refer below...
|
Yeah thats what i wanted to know thanks for your time and help |
cud u give me your fb id in case if i am stuck bcz talking here is long process.thanks |
@abhiburk you can post your problems and if you want help, you can get answers from stackoverflow.com I'm one of the folks there. |
@mejuliver @kishor10d How can we use database within this Chat class ? |
You can use the onmessage function if you want to store the messages to database. i recommend using document type database like mongodb, firebase, rethinkdb |
I don't use this anymore. I'm using laravel + vue + redis |
I have a website that should serve a student communication in our university, I found that this project is like a chat room, How can I convert it to another form where student can chat with a specific user using their ID ?? I so grateful for every help
The text was updated successfully, but these errors were encountered: