
Refactored Command namespace; reusing more code, standardized interfaces WebSocket handles wrapping messages better/properly now
16 lines
354 B
PHP
16 lines
354 B
PHP
<?php
|
|
namespace Ratchet\Command;
|
|
use Ratchet\SocketInterface;
|
|
|
|
interface ActionInterface extends CommandInterface {
|
|
/**
|
|
* Pass the Sockets to execute the command on
|
|
* @param Ratchet\SocketInterface
|
|
*/
|
|
function __construct(SocketInterface $socket);
|
|
|
|
/**
|
|
* @return Ratchet\SocketInterface
|
|
*/
|
|
function getSocket();
|
|
} |