Runtime View¶
RAML2AGL Generation¶
Fig. 9 presents the sequence of the raml2agl
run for automatically generate APP Class, WebSocketApi, AGL Service and
Service Class.
AGL Service Start¶
It’s important to have some insight on how AGL Services are initialized and how the Unix Web Socket gets created. Therefore, Fig. 10 shows this process.
Web Socket Communication¶
The Web Socket Communication can only happen after the AGL Service is already running, thus the Unix Web Socket was already created and the RESTfull API is being served. Fig. 11 shows the sequence how the entire communication takes place.
Note that the Application using the APP Class will have the entire Web Socket communication abstracted as simple method calls. Hence, an RPC model is implemented on top of the RESTful API. Fig. 12 shows this abstracted communication sequence.