public function disconnect(Client $client, $message = 'Goodbye.')
    {
        $this->fire(self::CLIENT_DISCONNECT, $client, $message);

        $this->log('Client disconnected: <pop>'.$client.'</pop>', Logger::INFO);

        $client->disconnect();

        $i = array_search($client, $this->clients);
        unset($this->clients[$i]);
    }
public function disconnect(Client $client, $message = 'Goodbye.')
    {
        $this->fire(self::CLIENT_DISCONNECT, $client, $message);

        $this->log('Client disconnected: <pop>'.$client.'</pop>', Logger::INFO);

        $client->disconnect();

        $i = array_search($client, $this->clients);
        unset($this->clients[$i]);
    }
public function disconnect ( Client $ client , $ message = 'Goodbye.' ) { $ this -> fire ( self :: CLIENT_DISCONNECT , $ client , $ message ) ; $ this -> log ( 'Client disconnected: <pop>' . $ client . '</pop>' , Logger :: INFO ) ; $ client -> disconnect ( ) ; $ i = array_search ( $ client , $ this -> clients ) ; unset ( $ this -> clients [ $ i ] ) ; }
Disconnect a client

@param  Client $client  The client to disconnect
@param  string $message Data to write to the socket.
@return mixed
Disconnect a client