Subversion Repositories qbpwcf-lib(archive)

Rev

Rev 915 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 liveuser 1
<?php
2
namespace Ratchet\RFC6455\Messaging;
3
 
4
interface DataInterface {
5
    /**
6
     * Determine if the message is complete or still fragmented
7
     * @return bool
8
     */
9
    function isCoalesced();
10
 
11
    /**
12
     * Get the number of bytes the payload is set to be
13
     * @return int
14
     */
15
    function getPayloadLength();
16
 
17
    /**
18
     * Get the payload (message) sent from peer
19
     * @return string
20
     */
21
    function getPayload();
22
 
23
    /**
24
     * Get raw contents of the message
25
     * @return string
26
     */
27
    function getContents();
28
 
29
    /**
30
     * Should return the unmasked payload received from peer
31
     * @return string
32
     */
33
    function __toString();
34
}