Backend API

abstract class SendMessageOverFBP

Abstract class that implements methods related to sending messages from the server to the UIs, over the Flow-Based Programming Network Protocol.

Created by antoine on 30/05/17.

void sendMessage(String command, JSONObject payload)

Send a message to only one client on the UI, the same as the one that sent a request.

void sendMessageToAll(String command, JSONObject payload)

Send a message to all the clients connected to the workspace/project.

void sendError (String message)

Send an error message to only one client on the UI, the same as the one that sent a request.

void sendErrorToAll (String message)

Send an error message to all the clients connected to the workspace/project.