laravel-websockets/src/Events/ConnectionPonged.php

39 lines
736 B
PHP

<?php
namespace BlaxSoftware\LaravelWebSockets\Events;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class ConnectionPonged
{
use Dispatchable, SerializesModels;
/**
* The WebSockets app id that the user connected to.
*
* @var string
*/
public $appId;
/**
* The Socket ID associated with the connection.
*
* @var string
*/
public $socketId;
/**
* Create a new event instance.
*
* @param string $appId
* @param string $socketId
* @return void
*/
public function __construct(string $appId, string $socketId)
{
$this->appId = $appId;
$this->socketId = $socketId;
}
}