Stream
extends HTTPStream
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
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"
$eventStack
protected
array<string|int, mixed>
$eventStack
$ownerServer
protected
Server
$ownerServer
__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
-