⭐Get Start
O'rnatish
Composer yordamida o'rnatish
composer require jscorptech/websocketconfig fayilni import qilish
php artisan verdor:publish --tag=websocketYangi handler class yarating app/Http/Handlers/WebsocketHandler.php
<?php
namespace App\Http\Handlers;
use JscorpTech\Websocket\Interfaces\WebsocketInterface;
class WebsocketHandler implements WebsocketInterface
{
public function onConnect($connection, $service): void
{
// TODO: Implement onConnect() method.
}
public function onMessage($connection, $message, $service)
{
// TODO: Implement onMessage() method.
}
public function onClose($connection, $service)
{
// TODO: Implement onClose() method.
}
}
config/websocket.php faylini o'zgartiring
Ishga tushurish
Last updated