Some checks are pending
CI / PHPUnit (highest, 5.4) (push) Waiting to run
CI / PHPUnit (highest, 5.5) (push) Waiting to run
CI / PHPUnit (highest, 5.6) (push) Waiting to run
CI / PHPUnit (highest, 7.0) (push) Waiting to run
CI / PHPUnit (highest, 7.1) (push) Waiting to run
CI / PHPUnit (highest, 7.2) (push) Waiting to run
CI / PHPUnit (highest, 7.3) (push) Waiting to run
CI / PHPUnit (highest, 7.4) (push) Waiting to run
CI / PHPUnit (lowest, 5.4) (push) Waiting to run
44 lines
1.3 KiB
PHP
44 lines
1.3 KiB
PHP
<?php
|
|
namespace mfmdevsystem\socket\Mock;
|
|
use mfmdevsystem\socket\Wamp\WampServerInterface;
|
|
use mfmdevsystem\socket\WebSocket\WsServerInterface;
|
|
use mfmdevsystem\socket\ConnectionInterface;
|
|
|
|
class WampComponent implements WampServerInterface, WsServerInterface {
|
|
public $last = array();
|
|
|
|
public $protocols = array();
|
|
|
|
public function getSubProtocols() {
|
|
return $this->protocols;
|
|
}
|
|
|
|
public function onCall(ConnectionInterface $conn, $id, $procURI, array $params) {
|
|
$this->last[__FUNCTION__] = func_get_args();
|
|
}
|
|
|
|
public function onSubscribe(ConnectionInterface $conn, $topic) {
|
|
$this->last[__FUNCTION__] = func_get_args();
|
|
}
|
|
|
|
public function onUnSubscribe(ConnectionInterface $conn, $topic) {
|
|
$this->last[__FUNCTION__] = func_get_args();
|
|
}
|
|
|
|
public function onPublish(ConnectionInterface $conn, $topic, $event, array $exclude, array $eligible) {
|
|
$this->last[__FUNCTION__] = func_get_args();
|
|
}
|
|
|
|
public function onOpen(ConnectionInterface $conn) {
|
|
$this->last[__FUNCTION__] = func_get_args();
|
|
}
|
|
|
|
public function onClose(ConnectionInterface $conn) {
|
|
$this->last[__FUNCTION__] = func_get_args();
|
|
}
|
|
|
|
public function onError(ConnectionInterface $conn, \Exception $e) {
|
|
$this->last[__FUNCTION__] = func_get_args();
|
|
}
|
|
}
|