
Fluent interface on MessageInterface::addFrame RFC6455 Message unit tests RFC handling TCP concatenation (refs #31)
38 lines
672 B
PHP
38 lines
672 B
PHP
<?php
|
|
namespace Ratchet\WebSocket\Version;
|
|
|
|
/**
|
|
* @todo Consider making parent interface/composite for Message/Frame with (isCoalesced, getOpcdoe, getPayloadLength, getPayload)
|
|
*/
|
|
interface MessageInterface {
|
|
/**
|
|
* @alias getPayload
|
|
*/
|
|
function __toString();
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
function isCoalesced();
|
|
|
|
/**
|
|
* @param FragmentInterface
|
|
* @return MessageInterface
|
|
*/
|
|
function addFrame(FrameInterface $fragment);
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
function getOpcode();
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
function getPayloadLength();
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
function getPayload();
|
|
} |