src/Socket/Enhanced/Controller.php
static function close($data = null, $client_id = null) {
        return $client_id ? Gateway::closeClient($client_id, $data) : Gateway::closeCurrentClient($data);
    }
static function close($data = null, $client_id = null) {
        return $client_id ? Gateway::closeClient($client_id, $data) : Gateway::closeCurrentClient($data);
    }
static function close ( $ data = null , $ client_id = null ) { return $ client_id ? Gateway :: closeClient ( $ client_id , $ data ) : Gateway :: closeCurrentClient ( $ data ) ; }
向客户端发送数据并关闭连接

@param $data
@param $client_id
@return bool
向客户端发送数据并关闭连接