1 | <?php |
||
2 | |||
3 | namespace BeyondCode\LaravelWebSockets\Events; |
||
4 | |||
5 | use Illuminate\Foundation\Events\Dispatchable; |
||
6 | use Illuminate\Queue\SerializesModels; |
||
7 | |||
8 | class ConnectionClosed |
||
9 | { |
||
10 | use Dispatchable, SerializesModels; |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
11 | |||
12 | /** |
||
13 | * The WebSockets app id that the user connected to. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | public $appId; |
||
18 | |||
19 | /** |
||
20 | * The Socket ID associated with the connection. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | public $socketId; |
||
25 | |||
26 | /** |
||
27 | * Create a new event instance. |
||
28 | * |
||
29 | * @param string $appId |
||
30 | * @param string $socketId |
||
31 | * @return void |
||
32 | */ |
||
33 | public function __construct(string $appId, string $socketId) |
||
34 | { |
||
35 | $this->appId = $appId; |
||
36 | $this->socketId = $socketId; |
||
37 | } |
||
38 | } |
||
39 |