Documentation

ServerSentEvent extends DataChunk
in package
implements ChunkInterface

FinalYes
Tags
author

Antoine Bluchet soyuka@gmail.com

author

Nicolas Grekas p@tchwork.com

Table of Contents

Interfaces

ChunkInterface
The interface of chunks returned by ResponseStreamInterface::current().

Properties

$data  : string
$id  : string
$jsonData  : array<string|int, mixed>|null
$retry  : float
$type  : string

Methods

__construct()  : mixed
getArrayData()  : array<string|int, mixed>
Gets the SSE data decoded as an array when it's a JSON payload.
getData()  : string
getId()  : string
getRetry()  : float
getType()  : string

Properties

Methods

__construct()

public __construct(string $content) : mixed
Parameters
$content : string

getArrayData()

Gets the SSE data decoded as an array when it's a JSON payload.

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

        
On this page

Search results