If the customer service personnel log in, the customer service is displayed online on the page. after the customer logs in, you can choose a customer service consulting service, regardless of the customer service, user, and refresh page, to reconnect and match. I am not familiar with swoole. My first instinct is to find a way to connect the current ws when logging on... if the customer service personnel logs in, the customer service is displayed online on the page. after the customer logs in, you can select a customer service for consultation.
Regardless of customer service, user, and refresh page, you can reconnect and match.
I am not familiar with swoole. My first instinct is to find a way to save the current ws Connection id and user_id to redis during login, rebind the link when refreshing the page, and send the information, take the corresponding user_id and find the connection id in the background to send the information !!
I don't know why it is unreasonable to do this. I don't have any in-depth understanding yet. I am very grateful to you for your guidance!
Reply content:
If the customer service personnel logs in, the customer service is displayed online on the page. after the customer logs in, you can select a customer service for consultation.
Regardless of customer service, user, and refresh page, you can reconnect and match.
I am not familiar with swoole. My first instinct is to find a way to save the current ws Connection id and user_id to redis during login, rebind the link when refreshing the page, and send the information, take the corresponding user_id and find the connection id in the background to send the information !!
I don't know why it is unreasonable to do this. I don't have any in-depth understanding yet. I am very grateful to you for your guidance!