How to do it...

Let us build a fast and asynchronous messenger using Reactive WebSocket by performing the following steps:

  1. Just like in the previous recipe, convert ch12-messenger to a Spring Boot 2.0 application by adding the Spring Boot 2.0.0.M2 starter POM dependencies, like webflux, actuator for project status monitoring and management, and the websocket protocol we recently used.
There is no Reactive counterpart for the POM starter WebSocket.
  1. Inside the core package org.packt.messenger.core, add the following Bootstrap class:
@SpringBootApplication 
public class ChatBootApplication {     
  public static void main(String[] args) throws Exception { 
        SpringApplication.run(ChatBootApplication.class,  
            args); 
    } 
} 
  1. The application.properties file ...

Get Spring 5.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.