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

  Author Author  
Picture of Nathan Bruer
Name: Nathan Bruer is available for providing paid consulting. Contact Nathan Bruer .
Packages: 1 Browse all classes by Nathan Bruer Browse all classes by
Country: United States United States - PHP jobs in United States
Age: 26
All time rank: 1695221 in United States United States
Week rank: 585 Up67 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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.

  Classes of Nathan Bruer  >  Web Socket Service  >  Download Download .zip .tar.gz  >  Support forum Support forum (7)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Web Socket Service
Base name: web-socket-service
Description: Handle Web socket accesses using child processes
Version: 1
PHP version: 5.3
License: GNU General Public License (GPL)
All time users: 1431 users
All time rank: 2481
Week users: 4 users
Week rank: 555 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Networking Networking protocols, clients and servers View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Unix Use of capabilities specific of POSIX, Unix like operating systems View top rated classes
Group folder image AJAX Interact with the Web server without page reloading View top rated classes


  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

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  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.

Install with Composer Install with Composer - Download Download all files: web-socket-service.tar.gz web-socket-service.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.