Documentation

Stream extends HTTPStream
in package

Table of Contents

Constants

STREAM_EOL  = "\n"
STREAM_FIELD_BLANK  = ":%s\n"
STREAM_FIELD_DATA  = "data:%s\n"
STREAM_FIELD_ID  = "id:%d\n"
STREAM_FIELD_RETRY  = "retry:%d\n"
STREAM_FIELD_TYPE  = "event:%s\n"

Properties

$eventStack  : array<string|int, mixed>
$ownerServer  : Server

Methods

__construct()  : mixed
parseContent()  : void
parseStatus()  : void
sendEvent()  : void
sendEventLine()  : void

Constants

STREAM_EOL

protected mixed STREAM_EOL = "\n"

STREAM_FIELD_BLANK

protected mixed STREAM_FIELD_BLANK = ":%s\n"

STREAM_FIELD_DATA

protected mixed STREAM_FIELD_DATA = "data:%s\n"

STREAM_FIELD_ID

protected mixed STREAM_FIELD_ID = "id:%d\n"

STREAM_FIELD_RETRY

protected mixed STREAM_FIELD_RETRY = "retry:%d\n"

STREAM_FIELD_TYPE

protected mixed STREAM_FIELD_TYPE = "event:%s\n"

Properties

$eventStack

protected array<string|int, mixed> $eventStack

Methods

__construct()

public __construct(Server $ownerServer) : mixed
Parameters
$ownerServer : Server

parseContent()

protected parseContent() : void

parseStatus()

protected parseStatus() : void

sendEvent()

protected sendEvent(array<string|int, mixed> $event) : void
Parameters
$event : array<string|int, mixed>

sendEventLine()

protected sendEventLine(mixed $pattern[, mixed $data = null ]) : void
Parameters
$pattern : mixed
$data : mixed = null

        
On this page

Search results