This is factory function that can create RxStompService when configuration is already known. You can use this function for defining provider for RxStompService. RxStompService created using this function is configured and activated. This provides the simplest mechanism to define RxStompService for Dependency Injection.
See: /guide/ng2-stompjs/ng2-stomp-with-angular7.html for a step-by-step guide.