Submit
Path:
~
/
/
proc
/
self
/
root
/
opt
/
psa
/
admin
/
plib
/
vendor
/
plesk
/
ratchetphp
/
tests
/
helpers
/
Ratchet
/
Mock
/
File Content:
Component.php
<?php namespace Ratchet\Mock; use Ratchet\MessageComponentInterface; use Ratchet\WebSocket\WsServerInterface; use Ratchet\ConnectionInterface; class Component implements MessageComponentInterface, WsServerInterface { public $last = []; public $protocols = []; public function __construct(?ComponentInterface $app = null) { $this->last[__FUNCTION__] = func_get_args(); } public function onOpen(ConnectionInterface $conn) { $this->last[__FUNCTION__] = func_get_args(); } public function onMessage(ConnectionInterface $from, $msg) { $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(); } public function getSubProtocols() { return $this->protocols; } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
Component.php
995 bytes
0644
Connection.php
458 bytes
0644
ConnectionDecorator.php
492 bytes
0644
WampComponent.php
1341 bytes
0644
N4ST4R_ID | Naxtarrr