mxmbsocket/lib/Ratchet/Application/WebSocket/AppInterface.php
Chris Boden 5386b4c066 Folder restructure
Just reorganized the folders.  Namespacing broken, unit tests broken, nothing works.
2011-11-12 14:29:10 -05:00

22 lines
582 B
PHP

<?php
namespace Ratchet\Protocol\WebSocket;
use Ratchet\SocketObserver;
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 SocketObserver {
/**
* @return string
*/
function getSubProtocol();
/**
* @param Ratchet\SocketInterface
* @param string
* @return Ratchet\Command\CommandInterface|null
*/
function onOpen(SocketInterface $conn, $headers);
}