R.Store.UplinkStore Class
Implementation of R.Store using a remote, REST-like Store. The store is read-only from the components,
as well as from the Client in general, but the remote backend should be wired-up with R.Dispatcher.UplinkDispatcher to
implement the over-the-wire Flux.
Item Index
Methods
Methods
destroy
()
Clean UplinkStore store
fetch
-
key
Fetch data according to a key
Parameters:
-
key
StringThe key
Returns:
fn the yielded fonction
serialize
()
String
Serialize the UplinkStore store
Returns:
data The serialized UplinkStore store
signalUpdate
-
key
Triggered by the socket.on("update") event in R.Uplink
Fetch data according to the given key
Call the saved function contained in subscribers
Parameters:
-
key
StringThe key to fetch
sub
-
key
-
_signalUpdate
Subscribe at a specific key
Parameters:
-
key
StringThe specific key to subscribe
-
_signalUpdate
Functionthe function that will be call when a data corresponding to a key will be updated
Returns:
subscription The saved subscription
unserialize
-
str
Unserialize the UplinkStore store
Parameters:
-
str
StringThe string to unserialise
unsub
-
subscription
Unsubscribe
Parameters:
-
subscription
ObjectThe subscription that contains the key to unsuscribe