Skip to content

Socket.io Messaging

tkmaker edited this page Apr 28, 2015 · 1 revision

Modules using Socket.io

  1. Webserver
  2. Routing Processor (RP)
  3. vis.js based webpage

Messaging Protocol

The Routing Processor (RP) and the vis.js webpage will connect to the webserver socket and join as rooms/channels (See Reference below for information on rooms). The RP will join the room as 'rpsock'...

On network creation the Routing Processor will send a JSON message {'load_network', ...

For each user initiated action in the web browser, the client would send a JSON message of the format {'command': command_string, 'data': data_value} where the command_string and data_value depends on the user action.

Reference:

Clone this wiki locally