Skip to content

Getting timeout for function onTextmessage() #211

@M170Dev

Description

@M170Dev

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedHelp wanted from contributors for resolving issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions