Real Time Logic Logo

WebSocket Libraries

The Barracuda Application Server provides three WebSocket Libraries:

  • WebSocket client library for Lua
  • WebSocket server library for Lua
  • WebSocket server library for C/C++

The client and server WebSocket libraries designed for Lua are included in the high-level socket API. The C WebSocket server library is designed for applications pushing real time data directly from C/C++ code.

WebSocket is a technology that initially starts as HTTP(S) and is upgraded to a persistent connection, thus enabling bidirectional real-time communication between a client such as a browser and the server. As web applications become more sophisticated, WebSocket is becoming more and more popular since it enables a way of building responsive real-time web applications.

The WebSocket libraries are available for all supported platforms including, VxWorks, ThreadX/NetX, RTXC, QNX, INTEGRITY, µ-velOSity, Embedded Linux, Windows CE, embOS, SMX, MQX, and FreeRTOS/LwIP.

WebSockets vs HTTP/AJAX/REST

The WebSocket protocol defined in RFC 6455 specifies how a standard HTTPS request/response pair can be upgraded to a secure and persistent full-duplex connection. HTML5 WebSocket-based applications enable real-time communication while placing less burden on the servers.

WebSocket Libraries vs HTTP

The fact that Websockets provide a bi-directional communication channel between the browser and server immediately opens up some very interesting opportunities for web based device management applications. Because the connection is persistent, the embedded web server can now initiate communication with the browser. The embedded web server can send alerts, updates, notifications, etc.. This adds a whole new dimension to the types of web based device management applications that can be constructed.

About Real Time Logic

Real Time Logic is a world class IoT security and web-enablement specialist. Their solutions and Ecosystem Partners drive modern real-time embedded applications to ensure the smooth deployment and safe operation of next generation products. More details…

Find out more…

For more information on the WebSocket Libraries provided with the Barracuda Application Server please complete the form below.

     

    Full Name (required):

    Company Name (required):

    Your Email (required)