Skip to content

Commit

Permalink
TODO: broadcastSender to to handle local storage exceeded limit
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Apr 1, 2024
1 parent c04d6dd commit d7cc151
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,6 @@
isAwait = true

delete data.status
let test = JSON.stringify(data)

socket.send(JSON.stringify(data));
data.status = "sent"
Expand All @@ -417,6 +416,8 @@
if (!isAwait) {
if (data.broadcastSender)
this.sendLocalMessage(data)

// TODO: set in indexeddb if above a specific size
if (broadcastBrowser)
config.set('localSocketMessage', JSON.stringify(data))
}
Expand Down

0 comments on commit d7cc151

Please sign in to comment.