mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 04:43:35 +00:00
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:
@@ -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();
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user