Closed particle4dev closed 6 years ago
Title: use WebSocket to update swap status
Business/User Value: [update]
Acceptance Criteria
Websocket start when user login
Websocket stop when user logout
What should we do when socket is started
What should we do when socket is stopped
DEV NOTES
https://docs.komodoplatform.com/barterDEX/barterDEX-API.html#getendpoint
http://soapatterns.org/design_patterns/asynchronous_queuing
http://soapatterns.org/design_patterns/event_driven_messaging
https://github.com/meteor/meteor/blob/devel/packages/socket-stream-client/browser.js#L80
https://github.com/meteor/meteor/blob/devel/packages/socket-stream-client/common.js#L98
Meteor is a great example that how we handle the web-socket message
https://github.com/meteor/meteor/tree/devel/packages/ddp-server
https://github.com/meteor/meteor/blob/devel/packages/ddp-client/common/livedata_connection.js#L1618
https://github.com/meteor/meteor/tree/devel/packages/ddp-client/client
https://github.com/meteor/meteor/blob/devel/packages/ddp-client/client/client_convenience.js
DESIGN Notes
None
---other items that you may add to a story---
NEEDS PM
NEEDS DESIGN
Related issues
https://github.com/particle4dev/dicoapp-e/issues/64
/label ~"story"
Title: use WebSocket to update swap status
Business/User Value: [update]
Acceptance Criteria
Websocket start when user login
Websocket stop when user logout
What should we do when socket is started
What should we do when socket is stopped
DEV NOTES
https://docs.komodoplatform.com/barterDEX/barterDEX-API.html#getendpoint
http://soapatterns.org/design_patterns/asynchronous_queuing
http://soapatterns.org/design_patterns/event_driven_messaging
https://github.com/meteor/meteor/blob/devel/packages/socket-stream-client/browser.js#L80
https://github.com/meteor/meteor/blob/devel/packages/socket-stream-client/common.js#L98
Meteor is a great example that how we handle the web-socket message
https://github.com/meteor/meteor/tree/devel/packages/ddp-server
https://github.com/meteor/meteor/blob/devel/packages/ddp-client/common/livedata_connection.js#L1618
https://github.com/meteor/meteor/tree/devel/packages/ddp-client/client
https://github.com/meteor/meteor/blob/devel/packages/ddp-client/client/client_convenience.js
DESIGN Notes
None
---other items that you may add to a story---
NEEDS PM
None
NEEDS DESIGN
None
Related issues
https://github.com/particle4dev/dicoapp-e/issues/64
/label ~"story"