voryx / Thruway

PHP Client and Router Library for Autobahn and WAMP (Web Application Messaging Protocol) for Real-Time Application Messaging
MIT License
676 stars 118 forks source link

enableKeepAlive isn't working at all #310

Closed AdamSEY closed 4 years ago

AdamSEY commented 6 years ago

Hi, I tried as follows:

        $loop   = \React\EventLoop\Factory::create();
        $router = new \Thruway\Peer\Router($loop);
        $client = new Thruway\Transport\RatchetTransportProvider(WS_ADDRESS,WS_PORT);
        $client->enableKeepAlive($loop,3);
        $router->registerModule($client); 

But I'm not receiving any ping/pong requests, Is there's a bug right here or I'm missing something?

mbonneau commented 4 years ago

The enableKeepAlive is implemented at the transport level, so you would only see transport ping and pong. Closing issue due to inactivity.