function closeAllConnections() {
        getConnectionIds().forEach(function (clientId) {
            close(clientId);
        });
        _connections = {};
    }
Closes the connection to the given client. Proxies to the transport.
@param {number} clientId