mxmbsocket/lib/Ratchet/Application/WebSocket/WebSocketAppInterface.php
Chris Boden cc507e821e Documentation
A bunch of API updates
Added read() to SocketInterface
Return self for fluid interface in Server
2011-11-22 11:33:41 -05:00

21 lines
640 B
PHP

<?php
namespace Ratchet\Application\WebSocket;
use Ratchet\Application\ApplicationInterface;
/**
* @todo App interfaces this (optionally) if is meant for WebSocket
* @todo WebSocket checks if instanceof AppInterface, if so uses getSubProtocol() when doing handshake
* @todo Pick a better name for this...
*/
interface WebSocketAppInterface extends ApplicationInterface {
/**
* Currently instead of this, I'm setting header in the Connection object passed around...not sure which I like more
* @param string
*/
function setHeaders($headers);
/**
* @return string
*/
function getSubProtocol();
}