borsTiHD/pi-control

Socket.io: Seperate Room Logic

Opened this issue · 1 comments

Split repeating room logic into one controller.
Reuse the controller afterwards.

  • Create Module and import for creating rooms
  • Initialize room with options config (param)
  • Options object could include keywords for room listening, callback functions and more