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