\Core\MapSocketMap

Summary

Methods
Properties
Constants
removeSocket()
removeSocketByStreamId()
addSocket()
$sockets
$worker
$socketIdMap
$count
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$sockets

$sockets : \Socket[]

Type

Socket[]

$worker

$worker : array

Type

array

$socketIdMap

$socketIdMap : array

Type

array

$count

$count : int

Type

int

Methods

removeSocket()

removeSocket(\Socket  $socket, int|null  $streamId = null) : string

Parameters

\Socket $socket
int|null $streamId

Returns

string —

removeSocketByStreamId()

removeSocketByStreamId(int  $streamId) : string|null

Parameters

int $streamId

Returns

string|null —

addSocket()

addSocket(\Socket  $socket, int|null  $streamId = null) : string

Parameters

\Socket $socket
int|null $streamId

Returns

string —