Using QBit microservice lib's WebSocket support - JSON, WebSocket, Microservice
Using QBit microservice lib's WebSocket support
QBit microservice lib comes with a WebSocket lib that is geared towards delivering JSON.
It is very easy to use. It uses Java Lambdas so you can just implement the parts of the WebSocket that you care about. Ease of use and fluency is the name of the game, but it is also terse and readable. You can start a server and a client in a single main method and fool around. :)
To test it out, let's start up a WebSocket server, it will only take a few lines of code.
Create an HTTP server
/* Create an HTTP server. */HttpServer httpServer = httpServerBuilder()