Providing real-time widgets in a web application framework
First Claim
Patent Images
1. A method comprising:
- providing, by a server computing device of a web application framework, a framework socket in a web page rendered on a client device, the framework socket to communicably couple a framework widget to a message broker of the server computing device, wherein the framework widget comprises a web application embedded in the web page;
providing pointers to store in the framework widget, the pointers pointing to web application code in the web application framework, wherein the web application code is client-side scripting language logic that interfaces with the client device and is provided to the framework widget from a middleware of the server computing device as the framework widget is delivered to the client device;
opening, by the server computing device, a communication connection between the framework socket and one or more proxies of the server computing device;
providing, by the proxies of the server computing device, protocol translation between the framework socket of the client device and the message broker of the server computing device;
storing, by the server computing device, a topic in a memory associated with the framework widget;
sending, by the message broker, a data message corresponding to the topic to the framework widget, wherein the data message is sent from the message broker in real-time without being requested by the framework widget;
receiving, by the server computing device from the framework widget, a callback function pointer to a callback function related to the data message sent to the framework widget, wherein the callback function comprises at least a portion of an application code library; and
providing, by the server computing device to the framework widget, callback function code that executes the callback function specified by the received callback function pointer, the callback function code to perform additional processing of the data message to alter a display of the data message at the framework widget on the client device.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus for providing real-time widgets in a web application framework is described. In one embodiment, the method includes storing a topic in a framework widget. The method may also include receiving a data message, at a user computer system, from a message broker of a real-time web applications framework corresponding to the topic. In one embodiment, the method may also include executing one or more callback functions, specified by the framework widget, to process the data message in response to receiving the data message.
63 Citations
18 Claims
-
1. A method comprising:
-
providing, by a server computing device of a web application framework, a framework socket in a web page rendered on a client device, the framework socket to communicably couple a framework widget to a message broker of the server computing device, wherein the framework widget comprises a web application embedded in the web page; providing pointers to store in the framework widget, the pointers pointing to web application code in the web application framework, wherein the web application code is client-side scripting language logic that interfaces with the client device and is provided to the framework widget from a middleware of the server computing device as the framework widget is delivered to the client device; opening, by the server computing device, a communication connection between the framework socket and one or more proxies of the server computing device; providing, by the proxies of the server computing device, protocol translation between the framework socket of the client device and the message broker of the server computing device; storing, by the server computing device, a topic in a memory associated with the framework widget; sending, by the message broker, a data message corresponding to the topic to the framework widget, wherein the data message is sent from the message broker in real-time without being requested by the framework widget; receiving, by the server computing device from the framework widget, a callback function pointer to a callback function related to the data message sent to the framework widget, wherein the callback function comprises at least a portion of an application code library; and providing, by the server computing device to the framework widget, callback function code that executes the callback function specified by the received callback function pointer, the callback function code to perform additional processing of the data message to alter a display of the data message at the framework widget on the client device. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A non-transitory computer readable storage medium that provides instructions, which when executed on a processing device-cause the processing device to perform operations comprising:
-
providing, by the processing device of a server computing device of a web application framework, a framework socket in a web page rendered on a client device, the framework socket to communicably couple a framework widget to a message broker of the server computing device, wherein the framework widget comprises a web application embedded in the web page; providing pointers to store in the framework widget, the pointers pointing to web application code in the web application framework, wherein the web application code is client-side scripting language logic that interfaces with the client device and is provided to the framework widget from a middleware of the server computing device as the framework widget is delivered to the client device; opening, by the server computing device, a communication connection between the framework socket and one or more proxies of the server computing device; providing, by the proxies of the server computing device, protocol translation between the framework socket of the client device and the message broker of the server computing device; storing, by the server computing device, a topic in a memory associated with the framework widget; sending, by the message broker, a data message corresponding to the topic to the framework widget, wherein the data message is sent from the message broker in real-time without being requested by the framework widget; receiving, by the server computing device from the framework widget, a callback function pointer to a callback function related to the data message sent to the framework widget, wherein the callback function comprises at least a portion of an application code library; and providing, by the server computing device to the framework widget, callback function code that executes the callback function specified by the received callback function pointer, the callback function code to perform additional processing of the data message to alter a display of the data message at the framework widget on the client device. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A system of a web application framework comprising:
-
a memory; and a processing device communicably coupled with the memory, the processing device to; provide a framework socket in a web page rendered on a client device, the framework socket to communicably couple a framework widget to a message broker of the system, wherein the framework widget comprises a web application embedded in the web page; provide pointers to store in the framework widget, the pointers pointing to web application code in the web application framework, wherein the web application code is client-side scripting language logic that interfaces with the client device and is provided to the framework widget from a middleware of the server computing device as the framework widget is delivered to the client device; open a communication connection between the framework socket and one or more proxies of the system; provide, by the proxies, protocol translation between the framework socket of the client device and the message broker of the system; store a topic in a memory associated with the framework widget; send a data message corresponding to the topic to the framework widget, wherein the data message is sent from the message broker in real-time without being requested by the framework widget; receive, from the framework widget, a callback function pointer to a callback function related to the data message sent to the framework widget, wherein the callback function comprises at least a portion of an application code library; and provide, to the framework widget, callback function code that executes the callback function specified by the received callback function pointer, the callback function code to perform additional processing of the data message to alter a display of the data message at the framework widget on the client device. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification