public function close()
    {
        foreach ($this->clients as &$client) {
            $this->disconnect($client, 'Receiver shutting down... Goodbye.');
        }

        socket_close($this->socket);
    }
public function close()
    {
        foreach ($this->clients as &$client) {
            $this->disconnect($client, 'Receiver shutting down... Goodbye.');
        }

        socket_close($this->socket);
    }
public function close ( ) { foreach ( $ this -> clients as & $ client ) { $ this -> disconnect ( $ client , 'Receiver shutting down... Goodbye.' ) ; } socket_close ( $ this -> socket ) ; }
Closes the socket on shutdown
Closes the socket on shutdown