insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

Spike/ws

Open jackkav opened this issue 2 years ago • 0 comments

under exploration

  • open connection handling
  • contrasting push updates(event emitter chains) / pull updates(polling data model)
  • request model
  • high traffic cases
  • contrasting solving state problems in renderer / solving state problems in main

decisions:

  • instance dictionary is one-to-one [requestId]: [WebSocket]
  • use same request model as http, signified with a custom method set to WS,
  • note custom method feature will need to be aware of this
  • prefer push updates over polling
  • high traffic cases will be explored later using a virtualised list
  • prefer to solve persistence and remote connection concerns in main

jackkav avatar Jul 14 '22 11:07 jackkav