So, I used PHP to do a websocket backend, you can send a message through pusher to the client of the subscription, so as to achieve a simple chat room function, and then want to further realize private chat, but do not know how to achieve better.
My idea is a private conversation. The client subscribes to a common theme, similar to a group chat with only 2 people, is that so?
Thank you!
Reply content:
So, I used PHP to do a websocket backend, you can send a message through pusher to the client of the subscription, so as to achieve a simple chat room function, and then want to further realize private chat, but do not know how to achieve better.
My idea is a private conversation. The client subscribes to a common theme, similar to a group chat with only 2 people, is that so?
Thank you!
I used Python, JS have done server client, do not know how to implement PHP (good tough AH)
The server can be individually forwarded to a specific client for the URL. (Of course, your server needs to be able to distinguish between the various client protocols)
For example, I create a python group chat, Ws://localhost/python, through/python, it's all right.
Inlet SET Channel
https://segmentfault.com/q/1010000004863 ...