
Removed the `Component` namespace Removed the `Resource` namespace Renamed components: `IOServerComponent` => `IoServer` `WebSocketComponent` => `WsServer` `SessionComponent` => `SessionProvider` `WAMPServerComponent` => `WampServer` `IpBlackListComponent` => `IpBlackList` `FlashPolicyComponent` => `FlashPolicy`
37 lines
640 B
PHP
37 lines
640 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
|
|
*/
|
|
function addFrame(FrameInterface $fragment);
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
function getOpcode();
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
function getPayloadLength();
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
function getPayload();
|
|
} |