The Socket Library allows developers to rapidly set up a TCP/IP server of any protocol. The Client object dictates the protocol to use, and the Message object dictates the message format.
Currently the library supports only the WebSocket protocol, and the JSON format, but creating new protocols/formats is extremely easy.
Setting up a server is simple: create a new Server, tell it what protocol/format to use, give it an event manager (with event handlers already defined), and start it.
Future improvements include:
- Connection via multiple ports
- Process forking via PCNTL for multithreaded simultanious message processing
- Custom routed events
Socket Library is still in the early stages of development. The latest code can be downloaded from the Skeleton Framework repository.
Documentation can be found here:
And PHPDoc is here (select A_Socket package):