\think\log\driverSocket

github: https://github.com/luofei614/SocketLog

Summary

Methods
Properties
Constants
__construct()
save()
$port
No constants found
sendToClient()
check()
getClientArg()
send()
$config
$css
$allowForceClientIds
N/A
No private methods found
No private properties found
N/A

Properties

$port

$port : 

Type

$config

$config : 

Type

$css

$css : 

Type

$allowForceClientIds

$allowForceClientIds : 

Type

Methods

__construct()

__construct(array  $config = array()) 

构造函数

Parameters

array $config

缓存参数

save()

save(array  $log = array()) : boolean

调试输出接口

Parameters

array $log

日志信息

Returns

boolean

sendToClient()

sendToClient(  $tabid,   $client_id,   $logs,   $force_client_id) 

发送给指定客户端

Parameters

$tabid
$client_id
$logs
$force_client_id

check()

check() 

getClientArg()

getClientArg(  $name) 

Parameters

$name

send()

send(string  $host, string  $message = '', string  $address = '/') : boolean

Parameters

string $host
  • $host of socket server
string $message
  • 发送的消息
string $address
  • 地址

Returns

boolean