$protocol
$protocol : \Workerman\Protocols\ProtocolInterface
Application layer protocol.
The format is like this Workerman\Protocols\Http.
AsyncTcpConnection.
$protocol : \Workerman\Protocols\ProtocolInterface
Application layer protocol.
The format is like this Workerman\Protocols\Http.
$transport : string
Transport layer protocol.
$statistics : array
Statistics for status command.
$onMessage : callable
Emitted when data is received.
$onClose : callable
Emitted when socket connection closed.
$onError : callable
Emitted when an error occurs with connection.
$onConnect : callable
Emitted when socket connection is successfully established.
$_socket : resource
Udp socket.
$_remoteAddress : string
Remote address.
$connected : bool
Connected or not.
$_contextOption : array
Context option.