Frontend API
export class FBPNetworkMessageHandler
Main message handler for the FBPNetworkProtocol. This class takes care of redirecting the messages to the proper handlers. These handlers will then take care of doing the proper actions depending on the received message.
Use its handleMessage method as the first method to call when receiving a message over the FBP Network Protocol.
Created by antoine on 15/06/2017.
handleMessage (ev: MessageEvent)
Handle any FBP Network Protocol compliant message by redirecting it to the proper handler.
- Parameters:
ev
— the MessageEvent coming from the WebSocket.
private handleFlowMessage (msg: Object)
Handle the flow message. It creates a new instance of Flow and store it in the WorkspaceService.
The flow:flow message is a custom message that we added to the protocol. It is not described on the official website of the Flow Based Programming Network Protocol.
- Parameters:
msg
— the flow:flow message