From 4f94fe02755e38baef43e25fb764f89adaca85ba Mon Sep 17 00:00:00 2001 From: kremsy Date: Sun, 26 Mar 2017 21:21:19 +0200 Subject: [PATCH] updated communication usage doc --- core/Communication/usage_documentation.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/Communication/usage_documentation.txt b/core/Communication/usage_documentation.txt index 39070787..454df701 100644 --- a/core/Communication/usage_documentation.txt +++ b/core/Communication/usage_documentation.txt @@ -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