Message
in package
implements
IteratorAggregate, MessageInterface
Attributes
Table of Contents
Interfaces
- IteratorAggregate
- MessageInterface
Properties
Methods
- __construct() : mixed
- __toString() : string
- Should return the unmasked payload received from peer
- addFrame() : MessageInterface
- count() : mixed
- {@inheritdoc}
- getContents() : string
- Get raw contents of the message
- getIterator() : mixed
- getOpcode() : int
- getPayload() : string
- Get the payload (message) sent from peer
- getPayloadLength() : int
- Get the number of bytes the payload is set to be
- getRsv1() : bool
- isBinary() : bool
- isCoalesced() : bool
- Determine if the message is complete or still fragmented
Properties
$_frames
private
SplDoublyLinkedList
$_frames
$len
private
int
$len
Methods
__construct()
public
__construct() : mixed
Attributes
__toString()
Should return the unmasked payload received from peer
public
__toString() : string
Return values
stringaddFrame()
public
addFrame(FrameInterface $fragment) : MessageInterface
Parameters
- $fragment : FrameInterface
Return values
MessageInterfacecount()
{@inheritdoc}
public
count() : mixed
Attributes
getContents()
Get raw contents of the message
public
getContents() : string
Return values
stringgetIterator()
public
getIterator() : mixed
Attributes
getOpcode()
public
getOpcode() : int
Return values
intgetPayload()
Get the payload (message) sent from peer
public
getPayload() : string
Return values
stringgetPayloadLength()
Get the number of bytes the payload is set to be
public
getPayloadLength() : int
Return values
intgetRsv1()
public
getRsv1() : bool
Return values
boolisBinary()
public
isBinary() : bool
Return values
boolisCoalesced()
Determine if the message is complete or still fragmented
public
isCoalesced() : bool