Access localStorage from the server and vice versa!
Keeps your localStorage in sync with the server and allows for access and manupilation of localStorage directly from the server!
server.js (with shoe)
var sock = shoevar thunderstore = stream;thunderstoreset'boop' 'beep';thunderstoresession = user: 'cat!';thunderstoreon'set'console.log'set from remote!' args;;;sockinstallserver '/sock';
client.js (with shoe)
var stream = shoe'/sock';var thunderstore = stream;thunderstoreset'beep' 'boop'thunderstoresession = user: 'dog';thunderstoreon'set'console.log'set from remote!' args
Set value of key on both the server and browser; emits a "set" event on the other end.
Retrieves value of key
Emitted when a key has been modified due to a remote set
- K/V store persistence