Starting with Version 1.0.6, NS Basic/App Studio supports web sockets. WebSockets define a full-duplex single socket connection over which messages can be sent between client and server. The WebSocket standard simplifies much of the complexity around bi-directional web communication and connection management.
It’s also easy to use from NS Basic. The new release has a sample client app that runs on the device, as well as a desktop server sample. It’s all explained in the new Tech Note, WebSockets.