this.ccgStateConnection.subscribe(channelSubscribe) .subscribe({ next(response) { _this2.setState({ ccgChannelsRendered: _this2.renderChannels(response.data.channels)}); this.ccgStateConnection.subscribe(timeLeftSubscribe) .subscribe({ next(response) { _this2.setState({ccgTimeLeftRendered: _this2.renderTimeLeft(response.data.timeLeft)});