Documentation

Server
in package

Table of Contents

Properties

$isRunning  : bool
$lastId  : int

Methods

__construct()  : mixed
__destruct()  : mixed
dispatchEvent()  : int|null
fetchLastEvent()  : array<string|int, mixed>|null
fetchNewEvents()  : iterable<string|int, mixed>
getStream()  : Stream
init()  : void
startRunning()  : string
stopRunning()  : void

Properties

$isRunning

public bool $isRunning = false

Methods

__construct()

public __construct([string $tableName = 'temp' ][, string $dbName = 'sse' ]) : mixed
Parameters
$tableName : string = 'temp'
$dbName : string = 'sse'

__destruct()

public __destruct() : mixed

dispatchEvent()

public dispatchEvent(mixed $type, mixed $data) : int|null
Parameters
$type : mixed
$data : mixed
Return values
int|null

fetchLastEvent()

public fetchLastEvent() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

fetchNewEvents()

public fetchNewEvents(mixed $lastId) : iterable<string|int, mixed>
Parameters
$lastId : mixed
Return values
iterable<string|int, mixed>

init()

public init([int $lastId = 0 ]) : void
Parameters
$lastId : int = 0

startRunning()

public startRunning() : string
Return values
string

stopRunning()

public stopRunning() : void

        
On this page

Search results