Login   Register  
PHP Classes
elePHPant
Icontem

Web Socket Service: Handle Web socket accesses using child processes

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (7)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-12-27 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 1,531 This week: 3All time: 2,384 This week: 574Up
Version License PHP version Categories  
web-socket-service 1GNU General Public Lice...5.3Networking, PHP 5, Unix, AJAX
Description Author  

This package can handle Web socket connections to establish asynchronous communications between browsers using JavaScript and PHP scripts.

There is one class that can listen to connections on a given port of an IP address. It creates child processes that 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.

Innovation Award  
PHP Programming Innovation award winner
December 2011
Winner


Prize: One downloadable copy of PhpED Professional
Web sockets provide a means for browsers to establish two way communications with servers. The connections are kept alive while necessary.

This class implements a pure PHP robust Web socket protocol server that can handle multiple connections simultaneously using different child processes to handle each socket connection individually.

Manuel Lemos
Picture of Nathan Bruer
Name: Nathan Bruer is available for providing paid consulting. Contact Nathan Bruer .
Classes: 1 package by
Country: United States United States
Age: 27
All time rank: 1666220 in United States United States
Week rank: 560 Up62 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example init script to start a simple chat service
Accessible without login HTML file exampleChatRoom.html Example Example to work with the example.php script used once the example.php script is ran it will communicate with the service and allow asynchronous communications
Accessible without login Plain text file WebClientService.class.php Class Web Client process to handle communication between the web client and the server
Accessible without login Plain text file WebSocket.class.php Class Service class designed to be the master process, which forks the new processes and handles the distribution of cross data communication between the child processes.

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,531All time:2,384
 This week:3This week:574Up