mxmbsocket/lib/Ratchet/Application/WebSocket/AppInterface.php
Chris Boden 47b7110dc1 Namespaces
Fixed all the namespaces to match new folder structure
2011-11-12 20:51:54 -05:00

22 lines
600 B
PHP

<?php
namespace Ratchet\Application\WebSocket;
use Ratchet\ObserverInterface;
use Ratchet\SocketInterface;
/**
* @todo App interfaces this (optionally) if is meant for WebSocket
* @todo WebSocket checks if instanceof AppInterface, if so uses getSubProtocol() when doing handshake
*/
interface AppInterface extends ObserverInterface {
/**
* @return string
*/
function getSubProtocol();
/**
* @param Ratchet\SocketInterface
* @param string
* @return Ratchet\Resource\Command\CommandInterface|null
*/
function onOpen(SocketInterface $conn, $headers);
}