
Updated RFC6455 handshaker to check values case insensitively Made sure RFC6455 handshaker matches encoding properly Added mbstring as a requirement for Ratchet Refs #28, #30
56 lines
908 B
PHP
56 lines
908 B
PHP
<?php
|
|
namespace Ratchet\WebSocket\Version;
|
|
|
|
interface FrameInterface {
|
|
/**
|
|
* @return bool
|
|
*/
|
|
function isCoalesced();
|
|
|
|
/**
|
|
* @param string
|
|
* @todo Theoretically, there won't be a buffer overflow (end of frame + start of new frame) - but test later, return a string with overflow here
|
|
*/
|
|
function addBuffer($buf);
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
// function isFragment();
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
function isFinal();
|
|
|
|
/**
|
|
* @return bool
|
|
*/
|
|
function isMasked();
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
function getOpcode();
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
function getPayloadLength();
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
// function getReceivedPayloadLength();
|
|
|
|
/**
|
|
* 32-big string
|
|
* @return string
|
|
*/
|
|
function getMaskingKey();
|
|
|
|
/**
|
|
* @param string
|
|
*/
|
|
function getPayload();
|
|
} |