\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

$config

$config

$css

$css

$allowForceClientIds

$allowForceClientIds

$app

$app

Methods

__construct()

__construct(\think\App  $app, array  $config = []) : mixed

架构函数

Parameters

\think\App $app
array $config

缓存参数

Returns

mixed —

save()

save(array  $log = [], mixed  $append = false) : bool

调试输出接口

Parameters

array $log

日志信息

mixed $append

Returns

bool —

sendToClient()

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

发送给指定客户端

Parameters

$tabid
$client_id
$logs
$force_client_id

Returns

mixed —

check()

check() : mixed

Returns

mixed —

getClientArg()

getClientArg(mixed  $name) : mixed

Parameters

mixed $name

Returns

mixed —

send()

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

Parameters

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

Returns

bool —