$connection->onWebSocketConnect的时候通过阿里云SLB 7层负载后拿到真实ip后如何传给businessworker里面?

0
已邀请:

six

赞同来自: ansendu

class Events {
public static function onWebSocketConnect($client_id, $data)
{
$_SESSION['ip'] = your_get_ip_func($data);
}

public static function onMessage($client_id, $data)
{
var_export($_SESSION['ip']);
}
}

要回复问题请先登录注册