:zap:🚧 Remove internal socket and improve general structure

This commit is contained in:
brunosimon
2017-07-23 01:45:49 +02:00
parent 47dafb763a
commit cfcf81364f
17 changed files with 109 additions and 357 deletions
+20
View File
@@ -0,0 +1,20 @@
'use strict'
class IDs
{
constructor()
{
this.lastId = 0
}
getId()
{
const lastId = ++this.lastId
return lastId
}
}
const ids = new IDs()
module.exports = ids