Метод |
Описание |
|
__construct ( rcrowe\Hippy\Transport\TransportInterface $transport ) |
Create a new instance on the client |
|
getFrom ( ) : string |
Get who the message will be sent from. |
|
getRoom ( ) : string | integer |
Get the room the message will be sent to. |
|
getToken ( ) : string |
Get the token used to authenticate with. |
|
getTransport ( ) : rcrowe\Hippy\Transport\TransportInterface |
Return the TransportInterface that will actually send the message. |
|
send ( rcrowe\Hippy\Message\SenderInterface $msg ) : void |
Send a single message or a queue of messages. A queue must implement \Iterator in order to work. |
|
setFrom ( string $from ) : void |
Set who the message will be sent from. |
|
setRoom ( string $room ) : void |
Set the room that the message will be sent to. |
|
setToken ( string $token ) : void |
Set the token used to authenticate with. |
|
setTransport ( rcrowe\Hippy\Transport\TransportInterface $transport ) : void |
Set the instance of TransportInterface that will actually send the message. |
|