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