Added socket.io

This commit is contained in:
2024-07-31 19:01:55 -04:00
parent fc66225cf5
commit 441e372987
23 changed files with 551 additions and 151 deletions
+5 -2
View File
@@ -22,7 +22,6 @@ class Table{
static async get(index){
try{
if(typeof index === 'object'){
index = index[this._key];
}
@@ -43,7 +42,7 @@ class Table{
// back to native values.
result = objValidate.parseFromString(this._keyMap, result);
return new this.prototype.constructor(result);
return new this(result);
}catch(error){
throw error;
@@ -84,6 +83,10 @@ class Table{
return out;
}
static async create(...args){
return this.add(...args);
}
static async add(data){
// Add a entry to this redis table.
try{