Web Socket Service is a PHP class which can handle Web socket connections to establish asynchronous communication between browsers using JavaScript and PHP scripts. There is one class which can listen to connections on a given port of an IP address. It creates child processes which will handle the Web socket communications, so if the child processes die, it will not kill the main Web socket handling process. A separate class can handle the communication between child and parent processes to process Web socket requests and return the request responses. Applications can handle the Web socket requests by creating a sub-class of this last class.