server 2 server

jorishermans edited this page Nov 24, 2014 · 1 revision

With the implementation of ServerSockets it is possible to use a ForceClient on the server.

This allows you todo server 2 server communication.

On the Force Server you implements:

Connector connector = new ServerSocketConnector();
fs.addConnector(connector);

connector.start();

On the other server where you want to sent messages to the Force Server you use:

ForceClient fc = new ForceClient();

fc.on("update", (fme, sender) {
      print("todo: ${fme.json["todo"]}");
});

Under the hood it will establish a connection to the server socket.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.