websocket implementation

This commit is contained in:
Čarodej
2022-03-09 07:40:05 +01:00
parent 2a0b01e888
commit 8495ed5422
15 changed files with 1816 additions and 226 deletions
@@ -0,0 +1,18 @@
<?php
namespace Domain\Notifications\Events;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
class TestUpdate implements ShouldBroadcast
{
public string $test = 'I am tru man';
use Dispatchable;
public function broadcastOn(): PrivateChannel
{
return new PrivateChannel('test.6474ef97-472b-43f3-b607-f71df9d33e43');
}
}