\Workerman\Protocols\HttpServerSentEvents

Class ServerSentEvents

Summary

Methods
Properties
Constants
__construct()
__toString()
No public properties found
No constants found
No protected methods found
$_data
N/A
No private methods found
No private properties found
N/A

Properties

$_data

$_data : array

Data.

Type

array

Methods

__construct()

__construct(array  $data) : mixed

ServerSentEvents constructor.

$data for example ['event'=>'ping', 'data' => 'some thing', 'id' => 1000, 'retry' => 5000]

Parameters

array $data

Returns

mixed —

__toString()

__toString() : string

__toString.

Returns

string —