private void OnStompConnected(StompMessage obj) { IsConnected = true; foreach (var action in _commandQueue) { action(); } _commandQueue.Clear(); }