Learn How can we send and receive Chat messages with other data like sender user name, message content and chat message timestamp also under this Ratchet websocket chat application. In this part, we have add feature like when sender has send chat message to chat server, then at that time we have write PHP script at Chat class and based on their sender user id we have fetch user details from Mysql database and from that data we can get user name details and that details will be send to other connected client, and with that data we have also add timestamp data also. So other connected client will be received chat message with sender user name, and sender client also can view chat message with Me in place of user name detail. So under this part, we have also send other data with chat message under this chat application with Ratchet Websocket library with PHP script.

#php #mysql #websocket

Chat Application in PHP & MySQL using WebSocket - Send Receive Other Data with Message
17.45 GEEK