Passing data from a POST request and broadcasting to a websocket in Micronaut
Let's say I have a class called "WebSocketAdapter" annotated with @ServerWebSocket. This class has @OnOpen, @OnClose, @OnMessage functions similar to the chat example.
Inside my class I have a constructor that is passed in a WebSocketBroadcaster. Inside my socket functions I have a WebSocketSession which I can save out to the object if I want, but I am actually using the broadcaster to broadcast to all open sockets.
Next, I have an @Controller class with a @Post controller function....