V2 fix socket (#296)

* refactor: rename timer endpoint

* refactor: typescript

* refactor: rename eventData and viewSettings

* refactor: message manager uses event store
This commit is contained in:
Carlos Valente
2023-02-24 22:47:07 +01:00
committed by GitHub
parent 03552056cb
commit edac1d7f75
102 changed files with 836 additions and 715 deletions
+5 -1
View File
@@ -5,7 +5,7 @@ const store = {};
/**
* A runtime store that broadcasts its payload
*/
export const runtimeState = {
export const eventStore = {
get(key) {
return store[key];
},
@@ -16,4 +16,8 @@ export const runtimeState = {
poll() {
return store;
},
broadcast() {
socketProvider.send(store);
socketProvider.broadcastState();
},
};