mxmbsocket/lib/Ratchet/Protocol/WebSocket/MessageInterface.php
Chris Boden 118923e784 Messaging Interfaces
Added Messaging and Framing Interfaces
2011-11-12 13:51:49 -05:00

32 lines
578 B
PHP

<?php
namespace Ratchet\Protocol\WebSocket;
/**
* @todo Consider making parent interface/composite for Message/Frame with (isCoalesced, getOpcdoe, getPayloadLength, getPayload)
*/
interface MessageInterface {
/**
* @return bool
*/
function isCoalesced();
/**
* @param FragmentInterface
*/
function addFragment(FragmentInterface $fragment);
/**
* @return int
*/
function getOpcode();
/**
* @return int
*/
function getPayloadLength();
/**
* @return string
*/
function getPayload();
}