This is basic example of how to create Simple socket in PHP by using ratchat
-
At first download the code
-
placed the code in htdocs folder in your xampp server
-
run "composer install"
-
run "php app.php" in terminal
-
run xampp server and http://localhost/php-sockets/ in firfox in two different tab
Note: unsecure web socket not working in chorme