moving module
This commit is contained in:
		
							parent
							
								
									fe1105a526
								
							
						
					
					
						commit
						a25ea6372a
					
				| @ -13,7 +13,7 @@ import reactor.core.publisher.Mono; | ||||
| public class ReactiveJavaClientWebSocket { | ||||
|     public static void main(String[] args) throws InterruptedException { | ||||
|         WebSocketClient client = new ReactorNettyWebSocketClient(); | ||||
|         client.execute(URI.create("ws://localhost:8080/event-emitter"), session -> session.send(Mono.just(session.textMessage("event-me-from-spring-reactive-client"))) | ||||
|         client.execute(URI.create("ws://localhost:8080/event-emitter"), session ->  session.send(Mono.just(session.textMessage("event-me-from-spring-reactive-client"))) | ||||
|             .thenMany(session.receive() | ||||
|                 .map(WebSocketMessage::getPayloadAsText) | ||||
|                 .log()) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user