src/RealTimeClient.php
public function disconnect()
    {
        if (!$this->connected) {
            return Promise\reject(new ConnectionException('Client not connected. Did you forget to call `connect()`?'));
        }

        $this->websocket->close();
        $this->connected = false;
    }
public function disconnect()
    {
        if (!$this->connected) {
            return Promise\reject(new ConnectionException('Client not connected. Did you forget to call `connect()`?'));
        }

        $this->websocket->close();
        $this->connected = false;
    }
public function disconnect ( ) { if ( ! $ this -> connected ) { return Promise \ reject ( new ConnectionException ( 'Client not connected. Did you forget to call `connect()`?' ) ) ; } $ this -> websocket -> close ( ) ; $ this -> connected = false ; }
Disconnects the client.
Disconnects the client .