I then display the admin controls and hide the non-admin stuff, which is just the users avatar, as there is no need for an admin to have an avatar. I check the URL, and if the URL has admin at the end then I know it is an administrator. While I can do frontend code I spend much more time on the server side. Now we simply need to create our index.html in the web directory. If you missed the first part, we wrote all the PHP code for the WebSocket server and got it running. If the user isnt an admin then we check to see if they are a winner or not and either change the background color to green or red, and give them a message letting them know if they won or not. This list displays the user image, name, and the count of unread messages.Īfter downloading it, you will need a program like Winzip to decompress it. Download 5 cm full movie indonesia asli mahameru The messages that have sent will remain as unread messages until the receiver will open the conversation box and by the time the user views the messages, the unread messages will be automatically updated in to read messages. With help of a web socket, this will make update the message count and conversation messages in real-time, which means if both users are online or logged into the chat system the data will be updated automatically without reloading the page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |