<?php namespace Ratchet\Server; use Ratchet\ConnectionInterface; use React\Socket\ConnectionInterface as ReactConn; /** * {@inheritdoc} */ class IoConnection implements ConnectionInterface { /** * @var \React\Socket\ConnectionInterface */ protected $conn; /** * @param \React\Socket\ConnectionInterface $conn */ public function __construct(ReactConn $conn) { $this->conn = $conn; } /** * {@inheritdoc} */ public function send($data) { $this->conn->write($data); return $this; } /** * {@inheritdoc} */ public function close() { $this->conn->end(); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
EchoServer.php | File | 592 B | 0644 |
|
FlashPolicy.php | File | 6.14 KB | 0644 |
|
IoConnection.php | File | 675 B | 0644 |
|
IoServer.php | File | 4.38 KB | 0644 |
|
IpBlackList.php | File | 2.7 KB | 0644 |
|