Ratchet ws server accept all incoming connections

36 views
Skip to first unread message

thomasvan...@gmail.com

unread,
Jul 27, 2016, 11:38:32 AM7/27/16
to Ratchet
Hi all

I'm having troubles configuring my ratchet app on digital ocean server.
Using netstat I see that it's listening on the port I configured.
If I try to connect on my local machine to my DO, the request keeps pending.

Here's my code

<?php

require __DIR__ . '/../vendor/autoload.php';

use Chat\Chat;

use Ratchet\Server\IoServer;
use Ratchet\Http\HttpServer;
use Ratchet\WebSocket\WsServer;

$server = IoServer::factory(new HttpServer(new WsServer(new Chat)), 2000);

$server->run();


Can anyone give me some pointers on how to debug?

Thanks!
Reply all
Reply to author
Forward
0 new messages