mxmbsocket/lib/Ratchet/Application/WebSocket/WebSocketAppInterface.php
Chris Boden c56ba3b2f1 Init WAMP
Starting work on the WebSocket Application Messaging Protocol (WAMP).
JSON messages, supports pub/sub and RPC via HTTP endpoints for website integration
2011-12-18 15:32:11 -05:00

21 lines
642 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();
}