\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
$app
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

$app

$app : 

Type

Methods

__construct()

__construct(\think\App  $app, array  $config = array()) 

架构函数

Parameters

\think\App $app
array $config

缓存参数

save()

save(array  $log = array(),   $append = false) : boolean

调试输出接口

Parameters

array $log

日志信息

$append

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