\think\log\driverSocket

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

Summary

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

Properties

$app

$app

$config

$config

$css

$css

$allowForceClientIds

$allowForceClientIds

$clientArg

$clientArg

Methods

__construct()

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

架构函数

Parameters

\think\App $app
array $config

缓存参数

Returns

mixed —

save()

save(array  $log = []) : bool

调试输出接口

Parameters

array $log

日志信息

Returns

bool —

sendToClient()

sendToClient( $tabid,  $clientId,  $logs,  $forceClientId) : mixed

发送给指定客户端

Parameters

$tabid
$clientId
$logs
$forceClientId

Returns

mixed —

check()

check() : bool

检测客户授权

Returns

bool —

getClientArg()

getClientArg(string  $name) : string

获取客户参数

Parameters

string $name

Returns

string —

send()

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

Parameters

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

Returns

bool —