SSEServer
extends Server
Table of Contents
Methods
-
__construct()
: mixed
-
dispatchEvent()
: mixed
-
fetchLastEvent()
: mixed
-
fetchNewEvents()
: iterable<string|int, mixed>
__construct()
public
__construct(string $tableName, string $dbName, Model $model) : mixed
Parameters
-
$tableName
: string
-
-
$dbName
: string
-
-
$model
: Model
-
dispatchEvent()
public
dispatchEvent(mixed $type, mixed $data[, mixed $time = null ][, mixed $ip = null ]) : mixed
Parameters
-
$type
: mixed
-
-
$data
: mixed
-
-
$time
: mixed
= null
-
-
$ip
: mixed
= null
-
fetchLastEvent()
public
fetchLastEvent() : mixed
fetchNewEvents()
public
fetchNewEvents(mixed $lastId) : iterable<string|int, mixed>
Parameters
-
$lastId
: mixed
-
Return values
iterable<string|int, mixed>