MessageInterface
extends
DataInterface, Traversable, Countable
in
Table of Contents
Methods
- __toString() : string
- Should return the unmasked payload received from peer
- addFrame() : MessageInterface
- getContents() : string
- Get raw contents of the message
- getOpcode() : int
- getPayload() : string
- Get the payload (message) sent from peer
- getPayloadLength() : int
- Get the number of bytes the payload is set to be
- isBinary() : bool
- isCoalesced() : bool
- Determine if the message is complete or still fragmented
Methods
__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
MessageInterfacegetContents()
Get raw contents of the message
public
getContents() : string
Return values
stringgetOpcode()
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
intisBinary()
public
isBinary() : bool
Return values
boolisCoalesced()
Determine if the message is complete or still fragmented
public
isCoalesced() : bool