Skip to content
aysheka edited this page Mar 2, 2013 · 2 revisions

Welcome to the Socket wiki!

This lib help to working with sockets via php.

There are two main class:

  • Aysheka\Socket\Client\Client
  • use Aysheka\Socket\Server\Server

Connect to server: `<?php use Symfony\Component\EventDispatcher\EventDispatcher; use Aysheka\Socket\Client\Client; use Aysheka\Socket\Address\IP4; use Aysheka\Socket\Type\Stream; use Aysheka\Socket\Transport\TCP;

$client = new Client('127.0.0.1', 8089, new IP4(), new Stream(), new TCP(), new EventDispatcher()); $client->connect(); $client->close();` And thats all

Clone this wiki locally