初始化
This commit is contained in:
15
src/websocket/Event.php
Normal file
15
src/websocket/Event.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace think\worker\websocket;
|
||||
|
||||
class Event
|
||||
{
|
||||
public $type;
|
||||
public $data;
|
||||
|
||||
public function __construct($type, $data = null)
|
||||
{
|
||||
$this->type = $type;
|
||||
$this->data = $data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user