sufst / back-end

The SUFST telemetry back-end server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement Socket IO Server

Nathanrs97 opened this issue · comments

1. Please describe the feature you are trying to request.

The Socket IO server will provide real-time communication of sensor data from the intermediate server to the front-end clients.

2. Describe the solution you'd like.

  • Only authorized users (ones that have been granted access tokens) should be able to use the socket.io socket to the back-end.
  • On the initial connect of a client, the meta event will occur to the client which details all the sensors configurations and real-time characteristics (interval).
  • Every n interval the data event will occur to the client which contains all sensor data obtained since the last interval.
  • The intermediate-server should be a special client as this is where the sensor data is coming from.
  • The front-ends should be able to configure their socket.io socket real-time characteristics (e.g. interval) through the socket with the config event.
  • One of the config event configurations should be to enable emulation mode where the server sends dummy sensor data to the client at the requested interval (default of 1 second).