You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use Ratchet\Server\IoServer;
use Ratchet\Http\HttpServer;
use Ratchet\WebSocket\WsServer;
use MyApp\Chat;
require dirname(__DIR__) . '/vendor/autoload.php';
$server = IoServer::factory(
new HttpServer(
new WsServer(
new Chat()
)
),
8080
);
$server->run();
chat.php
namespace MyApp;
use Ratchet\MessageComponentInterface;
use Ratchet\ConnectionInterface;
require_once dirname(__DIR__) . '/vendor/autoload.php';
class Chat implements MessageComponentInterface {
}
I used composer update AND composer dump-autoload
but problem is continue
The text was updated successfully, but these errors were encountered:
root
├── bin
│ └── server.php
├── src
│ └── Chat.php
├── composer.json
├── composer.lock
└── vendor
composer.json is
server.php
chat.php
I used composer update AND composer dump-autoload
but problem is continue
The text was updated successfully, but these errors were encountered: