updated communication usage doc

This commit is contained in:
kremsy 2017-03-26 21:21:19 +02:00
parent da94e8c588
commit 4f94fe0275

View File

@ -13,9 +13,11 @@ If you need methods which are not implemented, or additional Parameters, feel fr
Sample ManiaControl Implementation (for ManiaControl to ManiaControl connections)
##php code begin
//This Sample shows just the Implementation of the Method GET_SERVER_CHAT
$communication = $this->maniaControl->getCommunicationManager()->createCommunication(IP/Domain, PORT, 'YOUR_PASSWORD');
$communication->call(function($data){
var_dump($data);
//$data includes the data sent by the Website / other Controller
return new CommunicationAnswer($this->chatBuffer);
}, CommunicationMethods::GET_SERVER_CHAT);
##php code end