How to use the rsocket-flowable.Single.of function in rsocket-flowable

To help you get started, we’ve selected a few rsocket-flowable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github netifi / spring-demo / browser-ranking / src / main / js / index.js View on Github external
rank: function(rankingRequest, metadata){
            rankingRequest.getRecordsList().forEach(record => {
                console.log(record.getId() + "  " + record.getData().getSupername());
            });
            console.log("....");
            let resp = new RankingResponse();
            resp.setId(rankingRequest.getRecordsList()[0].getId());
            return Single.of(resp);
        }
    };