Class: WebSocketService

WebSocketService

Service which will take care of sending to and receive from Ginflow data.
The communication between this service and Ginflow is done via WebSocket.
GraphService is used to get nodes of the graph because the core instance of Cytoscape is owned by this service.
GinflowNotifierService is used to update state of nodes when messages are sent from Ginflow and received by this service.
StyleUpdaterService is used to show alternatives when a supervised node fails.


new WebSocketService()

Constructor.
Injects an instance of {@GraphService}, GinflowNotifierService, StyleUpdaterService

Source:

Methods


sendData(workflow)

Main method used to send and receive data to/from Ginflow.
Uses native class WebSocket JS, for more informations : https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API

Parameters:
Name Type Description
workflow any

the data concerning the workflow (i.e. name + services)

Source: