Introduction To SL4B

StreamLink for Browsers (SL4B) provides an object oriented JavaScript API that enables the creation of dynamic web applications within a browser. It allows a web developer to create a web page that has bi-directional communication with a server, without the need to reload the page or write their own streaming or polling mechanism to get required data from the server.

SL4B provides a subscription based API that can communicate with a Caplin Liberator, using the Real Time Text Protocol (RTTP). It allows the web page to subscribe and unsubscribe to the objects available from the Liberator, to receive notifications of updates to these objects, to create and delete objects, and to contribute data to existing objects.


Contents


Key Features

Back to contents


Architecture

SL4B is designed to have a modular, loosely coupled, architecture. Logically separate parts of the system are kept apart from each other using well defined interfaces. This allows alternative implemenations of a particular interface to be switched in without impacting components dependant on that interface - they are decoupled. The best example of one of these interfaces is the SL4B_AbstractRttpProvider, which is explained in more detail in the RTTP Provider section of the SL4B API document.

The other main design feature of SL4B is its use of JavaScript classes and objects. An example of this is SL4B_AbstractSubscriber, which should be subclassed by a class that is interested in subscribing to specific data sets and only receiving updates for objects within those data sets. This functionality is covered in more detail in the Subscriber section of the SL4B API document.

Back to contents


Other Links

Further information about SL4B can be found from the following links.

Back to contents