For those relatively new to NATS, it may come as a surprise that the NATS server has native support for WebSockets ! What this means in practice, is that the NATS server binary is able to support direct WebSocket connections from the browser (or other clients) using it as a transport layer for the NATS protocol rather than raw TCP packets. In addition to server-side support, there is an official nats.