Switch from returning Mono<WebSocketSession> to take a WebSocketHandler
and return Mono<Void> for the entire session handling.
The WebSocketHandler callback delimits the stard and end of protocol
handling and forces the handler to operate within the scope of the
Reactor operators.
Give the full duplex nature of WebSockets, the symmetry between client
and server (each now using WebSocketHandler) also seems appropriate.
Issue: SPR-14527
@ -85,18 +85,18 @@ public class RxNettyWebSocketClient implements WebSocketClient {
@@ -85,18 +85,18 @@ public class RxNettyWebSocketClient implements WebSocketClient {
@ -104,10 +104,11 @@ public class RxNettyWebSocketClient implements WebSocketClient {
@@ -104,10 +104,11 @@ public class RxNettyWebSocketClient implements WebSocketClient {
@ -112,6 +115,12 @@ public abstract class AbstractWebSocketIntegrationTests {
@@ -112,6 +115,12 @@ public abstract class AbstractWebSocketIntegrationTests {
@ -52,9 +51,10 @@ public class WebSocketIntegrationTests extends AbstractWebSocketIntegrationTests
@@ -52,9 +51,10 @@ public class WebSocketIntegrationTests extends AbstractWebSocketIntegrationTests
@ -62,9 +62,12 @@ public class WebSocketIntegrationTests extends AbstractWebSocketIntegrationTests
@@ -62,9 +62,12 @@ public class WebSocketIntegrationTests extends AbstractWebSocketIntegrationTests