<?php namespace Ratchet\Mock; use Ratchet\AbstractConnectionDecorator; class ConnectionDecorator extends AbstractConnectionDecorator { public $last = array( 'write' => '' , 'end' => false ); public function send($data) { $this->last[__FUNCTION__] = $data; $this->getConnection()->send($data); } public function close() { $this->last[__FUNCTION__] = true; $this->getConnection()->close(); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Component.php | File | 978 B | 0644 |
|
Connection.php | File | 401 B | 0644 |
|
ConnectionDecorator.php | File | 469 B | 0644 |
|
WampComponent.php | File | 1.27 KB | 0644 |
|