Open drborges opened 6 years ago
This would allow a local store to connect with different remote data sources, such as a Rest API, GraphQL, or even another arbor store via a peer-to-peer connection.
store.connect(new MyRestApiAdapter)
http://graphql.org/graphql-js/running-an-express-graphql-server
store.connect(new MyGraphQLServerAdapter)
https://www.html5rocks.com/en/tutorials/websockets/basics
store.connect(new MyWebsocketChannel)
https://www.html5rocks.com/en/tutorials/webrtc/basics
store.connect(new MyWebRTCConnection)
store.connect(new LocalStorageAdapter)
Useful References:
This would allow a local store to connect with different remote data sources, such as a Rest API, GraphQL, or even another arbor store via a peer-to-peer connection.
Rest APIs
GraphQL
http://graphql.org/graphql-js/running-an-express-graphql-server
Web Sockets
https://www.html5rocks.com/en/tutorials/websockets/basics
WebRTC
https://www.html5rocks.com/en/tutorials/webrtc/basics
Local Storage