Migrating existing Spring Websocket handler to use rsocket
问题 Suppose I have this simple Websocket handler for chat messages: @Override public Mono<Void> handle(WebSocketSession webSocketSession) { webSocketSession .receive() .map(webSocketMessage -> webSocketMessage.getPayloadAsText()) .map(textMessage -> textMessageToGreeting(textMessage)) .doOnNext(greeting-> greetingPublisher.push(greeting)) .subscribe(); final Flux<WebSocketMessage> message = publisher .map(greet -> processGreeting(webSocketSession, greet)); return webSocketSession.send(message); }