Refactor AbstractListenerWebSocketSession

- Added suspended flag to indicate whether the ReceivePublisher
is able to process the incoming messages.
- Use buffer strategy for the incoming messages.

Issue: SPR-14527
This commit is contained in:
Violeta Georgieva
2016-12-09 21:35:00 +02:00
committed by Rossen Stoyanchev
parent 9d03b77cdc
commit 08edec006b
5 changed files with 24 additions and 32 deletions

View File

@@ -61,8 +61,7 @@ public class BasicWebSocketHandlerIntegrationTests extends AbstractWebSocketHand
.flatMap(WebSocketResponse::getWebSocketConnection)
.flatMap(conn -> conn.write(messages
.map(TextWebSocketFrame::new)
.cast(WebSocketFrame.class)
.concatWith(Observable.just(new CloseWebSocketFrame())))
.cast(WebSocketFrame.class))
.cast(WebSocketFrame.class)
.mergeWith(conn.getInput())
)