Slack\RealTimeClient::disconnect PHP Méthode

disconnect() public méthode

Disconnects the client.
public disconnect ( )
    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;
    }