
Updated deps; React Socket notify client of shutdown Separated core interfaces into many Removed initial version support out of handshake negotiator Moved message parser responsibility to each version Removed __toString method from MessageInterface as to not confuse message from payload Support for RFC control frames Support message concatenation [BCB] (temporary) WsConnection hard coded to RFC version Handshake checks for \r\n\r\n anywhere, not just at end of string
33 lines
603 B
PHP
33 lines
603 B
PHP
<?php
|
|
namespace Ratchet\WebSocket\Version;
|
|
|
|
/**
|
|
* @todo Consider making parent interface/composite for Message/Frame with (isCoalesced, getOpcdoe, getPayloadLength, getPayload)
|
|
*/
|
|
interface MessageInterface {
|
|
/**
|
|
* @return bool
|
|
*/
|
|
function isCoalesced();
|
|
|
|
/**
|
|
* @param FragmentInterface
|
|
* @return MessageInterface
|
|
*/
|
|
function addFrame(FrameInterface $fragment);
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
function getOpcode();
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
function getPayloadLength();
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
function getPayload();
|
|
} |