Hi,
I used the example of Creating a simple bot that listens for events but when I write to the bot I always get a timeout on my website.
$ts3->notifyRegister("textprivate");
TeamSpeak3_Helper_Signal::getInstance()->subscribe("notifyTextmessage", "onTextmessage");
$ts3->clientGetByName("Mito")->message("Write to me");
while(1) $ts3->getAdapter()->wait();
function onTextmessage(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3_Node_Host $host) {
echo "Client " . $event["invokername"] . " sent textmessage: " . $event["msg"];
}
I'm using Cloudflare, could that be the problem?
Hi,
I used the example of Creating a simple bot that listens for events but when I write to the bot I always get a timeout on my website.
I'm using Cloudflare, could that be the problem?