The WebSocket protocol provides a way to exchange data and messages between a browser and the server via a persistent connection. You can send messages to the server and receive event-driven responses without having to poll the server for a reply.
As responses arrive asynchronous it is the ideal protocol to build Low Latency Client-Server applications.
Messages sent to the nodes WebSocket must be in JSON format where signatures are to be in JWS format and as encryption JWE is used.
In the Web Services JSON Namespace we offer many APIs to create sample JSON message.s