Improvement ideas - sarahwalters/rs-chat GitHub Wiki

Things we've decided about

  • send n and k as part of the json socket objects -- each client can choose own encoding n / k (DONE)
  • send auth data in the json socket objects
  • attach to database to store messages & usernames / keys
  • table w/ username & key. when you join, you provide your username & your key. usernames are unique.
  • Make our own typed array object (preallocate size, O(n) append where n is number of appended elements, refer to a slice without making a copy (for performance reasons)). Wrapper around Uint8Array
  • Make jquery modal dialogs https://jqueryui.com/dialog/#modal-form

Things we've considered

  • SHA-1 to verify message sender
  • QAM256 (or QAM16?) modulation/demodulation w/ noise to simulate a non-Internet channel (additive Gaussian white noise)
  • Memoize the polynomial generator function