Skip to content

Commit 7329d24

Browse files
committed
web: Put back cache for COA events
1 parent 81b23fe commit 7329d24

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/web/src/composables/useDmSocket.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,12 @@ const defaultExport = (options: {
9898
namespaces.PRESENTATION_TEXT,
9999
),
100100
edges: socket.addNamespace<EdgesEvents>(namespaces.EDGES, {}),
101-
coa: socket.addNamespace<CoaEvents>(namespaces.COA),
101+
coa: socket.addNamespace<CoaEvents>(namespaces.COA, {
102+
cache: {
103+
storage: cacheStorage,
104+
ttl: until4am(),
105+
},
106+
}),
102107
globalStats: socket.addNamespace<GlobalStatsEvents>(
103108
namespaces.GLOBAL_STATS,
104109
{

0 commit comments

Comments
 (0)