Skip to content

[Feat] Socket communication between plotter and server #5

@angel-penchev

Description

@angel-penchev

Describe the feature you'd like
Using Socket.io implement a mechanism which tracks which plotter devices are connecting/disconnecting from the server.

On device connect:

  • Generates a random 6-digit connection code and check if the code is not already taken by another device
  • Store the Socket.io session id with the 6-digit connection code in the plotters database table

On device disconnect:

  • Remove the session id - connection code pair from the plotters database table

Additional context

Metadata

Metadata

Assignees

Labels

apiTasks regarding the APIfeatureNew feature request

Type

No type

Projects

Status

📌 Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions