public function close($fd, $code = self::CLOSE_NORMAL, $reason = '')
    {
        $this->send($fd, pack('n', $code).$reason, self::OPCODE_CONNECTION_CLOSE);
        $this->log("server close connection[$fd]. reason: $reason, close_code = $code");
        return $this->server->close($fd);
    }
public function close($fd, $code = self::CLOSE_NORMAL, $reason = '')
    {
        $this->send($fd, pack('n', $code).$reason, self::OPCODE_CONNECTION_CLOSE);
        $this->log("server close connection[$fd]. reason: $reason, close_code = $code");
        return $this->server->close($fd);
    }
public function close ( $ fd , $ code = self :: CLOSE_NORMAL , $ reason = '' ) { $ this -> send ( $ fd , pack ( 'n' , $ code ) . $ reason , self :: OPCODE_CONNECTION_CLOSE ) ; $ this -> log ( "server close connection[$fd]. reason: $reason, close_code = $code" ) ; return $ this -> server -> close ( $ fd ) ; }
Close a connection.

@access  public
@param   int    $fd
@param   int    $code
@param   string $reason Reason.

@return  bool
Close a connection .