Runtime View¶
RAML2AGL Generation¶
Fig. 9 presents the sequence of the raml2agl
run for automatically generate APP Class, WebSocketApi, AGL Service and
Service Class.
Fig. 9 RAML2AGL Generation¶
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.
Fig. 10 AGL Service Start¶
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.
Fig. 11 Web Socket Communication¶
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.
Fig. 12 Web Socket Communication¶



